We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6620a8 commit a8e75baCopy full SHA for a8e75ba
chip/mchp/pwm.c
@@ -101,8 +101,10 @@ static uint32_t pwm_get_bb_sleep_mask(int id)
101
{
102
uint32_t bitpos = 32;
103
104
- if (id >= MCHP_PWM_ID_MAX && id < MCHP_PWM_ID_MAX)
+ if (id >= MCHP_PWM_ID_MAX &&
105
+ id < (MCHP_PWM_ID_MAX + MCHP_BBLEN_INSTANCES))
106
bitpos = (uint32_t)pwm_slp_bitpos[id];
107
+
108
return (1ul << bitpos);
109
}
110
0 commit comments