Skip to content

Commit 254ff60

Browse files
desmond-blue0xc0170
authored andcommitted
NRF52 need to call TIMER_TASK_SHUTDOWN for current consumption
1 parent c857596 commit 254ff60

File tree

1 file changed

+1
-0
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52

1 file changed

+1
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/us_ticker.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ void us_ticker_clear_interrupt(void)
141141
void us_ticker_free(void)
142142
{
143143
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_STOP);
144+
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_SHUTDOWN);
144145
nrf_timer_int_disable(NRF_TIMER1, nrf_timer_compare_int_get(NRF_TIMER_CC_CHANNEL0));
145146
NVIC_DisableIRQ(TIMER1_IRQn);
146147
us_ticker_initialized = false;

0 commit comments

Comments
 (0)