mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #7313 from mprse/NRF52840_ticker_width_fix
NRF_52840: Fix us ticker counter sizepull/7239/head
commit
58fa28b9b2
|
@ -77,7 +77,7 @@ void us_ticker_init(void)
|
|||
|
||||
nrf_timer_frequency_set(NRF_TIMER1, NRF_TIMER_FREQ_1MHz);
|
||||
|
||||
#ifdef NRF52
|
||||
#ifdef TARGET_NRF52
|
||||
nrf_timer_bit_width_set(NRF_TIMER1, NRF_TIMER_BIT_WIDTH_32);
|
||||
#else
|
||||
nrf_timer_bit_width_set(NRF_TIMER1, NRF_TIMER_BIT_WIDTH_16);
|
||||
|
|
Loading…
Reference in New Issue