One caveat -- sometimes the device starts in a state where the PWM clock won't work. It happens at ~1/5 resets. The workaround is to reset the device and try again.
It appears that once the PWM clock works the first time, it should work again ad infinitum while the device hasn't been reset. Good enough for now. Once there's more time, I will come back to the PWM issue and write some generic clock INIT / START / STOP functions.
One caveat -- sometimes the device starts in a state where the PWM clock won't work. It happens at ~1/5 resets. The workaround is to reset the device and try again.
It appears that once the PWM clock works the first time, it should work again ad infinitum while the device hasn't been reset. Good enough for now. Once there's more time, I will come back to the PWM issue and write some generic clock INIT / START / STOP functions.