Skip to content

Commit 03e3979

Browse files
nordic-krchcarlescufi
authored andcommitted
nrfx: drivers: pwm: Fix IDLEOUT configuration
Idleout setting depends only on pin state and not on count mode. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 4eafaa4 commit 03e3979

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nrfx/drivers/src/nrfx_pwm.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,7 @@ static void pwm_configure(nrfx_pwm_t const * p_instance, nrfx_pwm_config_t const
165165
#if NRF_PWM_HAS_IDLEOUT
166166
for (uint8_t channel = 0; channel < NRF_PWM_CHANNEL_COUNT; ++channel)
167167
{
168-
nrfy_pwm_channel_idle_set(p_instance->p_reg, channel,
169-
p_config->count_mode == NRF_PWM_MODE_UP ?
170-
!p_config->pin_inverted[channel] :
171-
p_config->pin_inverted[channel]);
168+
nrfy_pwm_channel_idle_set(p_instance->p_reg, channel, p_config->pin_inverted[channel]);
172169
}
173170
#endif
174171

0 commit comments

Comments
 (0)