Added timer shutdown after time stop on deinit

pull/12243/head
Bram de Boer 2019-12-19 08:27:10 +01:00 committed by Martin Kojtal
parent dc6320239b
commit b444b7c560
2 changed files with 2 additions and 0 deletions

View File

@ -919,6 +919,7 @@ void PalBbBleDisable(void)
/* stop timer */
NRF_TIMER0->TASKS_STOP = 1;
NRF_TIMER0->TASKS_SHUTDOWN = 1;
/* disable PPI channels */
NRF_PPI->CHENCLR = PPI_CHENCLR_CH14_Msk; /* Chan 14: COMPARE[0] -> TXEN/RXEN */

View File

@ -152,6 +152,7 @@ void PalTimerDeInit(void)
/* stop timer */
NRF_TIMER2->TASKS_STOP = 1;
NRF_TIMER2->TASKS_SHUTDOWN = 1;
palTimerCb.state = PAL_TIMER_STATE_UNINIT;
}