mirror of https://github.com/ARMmbed/mbed-os.git
NRF5x: Add bug fix for the first timer read.
It has been noticed that first read value can not be trusted.pull/7172/head
parent
1583cbc78e
commit
7e222f2994
|
@ -100,6 +100,9 @@ void us_ticker_init(void)
|
|||
|
||||
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_START);
|
||||
|
||||
/* Bug fix. First value can't be trusted. */
|
||||
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_CAPTURE1);
|
||||
|
||||
us_ticker_initialized = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue