This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Stopping PWM

Hi,

I am using nrf_pwm_noglitch.c from here . Is there a way to stop the pwm cleanly?. I would like to have a nrf_pwm_deinit(); similar to nrf_pwm_init(). Currently I set value of pwm to 0(0% duty cycle) and then disable interrupts. But this does not always got through since I have to wait for pwm_safe_to_update to be true.

Thanks in Advance.

Related