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/7375/head
parent
d6b7367bac
commit
1e49e4d45c
|
@ -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