hi,
I want to use timer interrupt to start PWM function, and PWM had PWM interrupt too, hoping every 20ms to start PWM function, but if I open PWM and timer interrupt together, can't get normal wave, if I stop PWM interrupt, the wave is ok. I don't know reason. maybe I can't start PWM in the timer interrupt function?


timer interrupt
void timer_led_event_handler(nrf_timer_event_t event_type, void* p_context)
{
//bsp_board_led_invert(0);
PWM init(); //---PWM init
}
PWM init
APP_ERROR_CHECK(nrf_drv_pwm_init(&m_pwm0, &configTip0, NULL)); //--- normal wave
APP_ERROR_CHECK(nrf_drv_pwm_init(&m_pwm1, &configRing0, NULL));//--- normal wave
//
// APP_ERROR_CHECK(nrf_drv_pwm_init(&m_pwm0, &configTip0, TipHandler));//--- abnormal wave
// APP_ERROR_CHECK(nrf_drv_pwm_init(&m_pwm1, &configRing0, RingHandler));//--- abnormal wave