Skip to content

Commit 6436f11

Browse files
author
Seppo Takalo
authored
Merge pull request #11123 from desmond-blue/fix-nrf52-us-ticker-free
NRF52 need to call TIMER_TASK_SHUTDOWN for current consumption
2 parents 1c2b050 + 7b5366f commit 6436f11

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)