Merge pull request #12243 from 0xc0170/fix_12242_recreate

Add timer shutdown after time stop on deinit
pull/12245/head
Martin Kojtal 2020-01-15 13:04:04 +01:00 committed by GitHub
commit bfbed2de7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}