Skip to content

Commit 7e222f2

Browse files
committed
NRF5x: Add bug fix for the first timer read.
It has been noticed that first read value can not be trusted.
1 parent 1583cbc commit 7e222f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/us_ticker.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ void us_ticker_init(void)
100100

101101
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_START);
102102

103+
/* Bug fix. First value can't be trusted. */
104+
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_CAPTURE1);
105+
103106
us_ticker_initialized = true;
104107
}
105108

0 commit comments

Comments
 (0)