The question is: how to completely turn off PWM in SoftDevice?
I am using the libraries nrf_pwm.h and nrf_pwm.c in this repo for PWM with SoftDevice. Everything seems to work fine (e.g., I can enable up to 4 PWM channels through PPI) except that there is ~ 0.3mA continuous background current after I disable PWM with the function call
nrf_pwm_set_enabled(false);
The content of nrf_pwm_set_enabled() can be found here. I can confirm the background current was only a few uAs before I enabled and disabled PWM, so this ~0.3mA should be related to PWM. I can see the PWM timers are turned off in nrf_pwm_set_enabled(false). Is there anything else that should be turned off to eliminate this 0.3mA current?