Skip to content

Commit 6f201f0

Browse files
Adam Wojasinskicarlescufi
authored andcommitted
drivers: pwm: pwm_nrfx: Revert workaround for stopping PWM instance
This reverts commit 36f4226. Signed-off-by: Adam Wojasinski <[email protected]>
1 parent 2460967 commit 6f201f0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/pwm/pwm_nrfx.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,7 @@ static int pwm_nrfx_set_cycles(const struct device *dev, uint32_t channel,
198198
* and till that moment, it ignores any start requests,
199199
* so ensure here that it is stopped.
200200
*/
201-
/* TODO: Remove nrfy_pwm_events_process() that is temporarly
202-
* added as a workaround for missing functionality in
203-
* nrfx_pwm_stopped_check()
204-
*/
205-
while (!nrfx_pwm_stopped_check(&config->pwm) &&
206-
!nrfy_pwm_events_process(config->pwm.p_reg,
207-
NRFY_EVENT_TO_INT_BITMASK(NRF_PWM_EVENT_STOPPED))) {
201+
while (!nrfx_pwm_stopped_check(&config->pwm)) {
208202
}
209203
}
210204

0 commit comments

Comments
 (0)