Skip to content

Commit b444b7c

Browse files
BramdeBoer10xc0170
authored andcommitted
Added timer shutdown after time stop on deinit
1 parent dc63202 commit b444b7c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/stack/sources/pal_bb_ble.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ void PalBbBleDisable(void)
919919

920920
/* stop timer */
921921
NRF_TIMER0->TASKS_STOP = 1;
922+
NRF_TIMER0->TASKS_SHUTDOWN = 1;
922923

923924
/* disable PPI channels */
924925
NRF_PPI->CHENCLR = PPI_CHENCLR_CH14_Msk; /* Chan 14: COMPARE[0] -> TXEN/RXEN */

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/stack/sources/pal_timer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ void PalTimerDeInit(void)
152152

153153
/* stop timer */
154154
NRF_TIMER2->TASKS_STOP = 1;
155+
NRF_TIMER2->TASKS_SHUTDOWN = 1;
155156

156157
palTimerCb.state = PAL_TIMER_STATE_UNINIT;
157158
}

0 commit comments

Comments
 (0)