diff options
Diffstat (limited to 'chip/mchp/pwm.c')
-rw-r--r-- | chip/mchp/pwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/mchp/pwm.c b/chip/mchp/pwm.c index 54200c7890..53a8c15806 100644 --- a/chip/mchp/pwm.c +++ b/chip/mchp/pwm.c @@ -110,8 +110,8 @@ static void pwm_configure(int ch, int active_low, int clock_low) * clock_low=1 selects the 100kHz_Clk source */ MCHP_PWM_CFG(ch) = (15 << 3) | /* Pre-divider = 16 */ - (active_low ? (1 << 2) : 0) | - (clock_low ? (1 << 1) : 0); + (active_low ? BIT(2) : 0) | + (clock_low ? BIT(1) : 0); } static const uint16_t pwm_pcr[MCHP_PWM_ID_MAX] = { |