Skip to content

Commit 58fa28b

Browse files
authored
Merge pull request #7313 from mprse/NRF52840_ticker_width_fix
NRF_52840: Fix us ticker counter size
2 parents 2be3c13 + 9966110 commit 58fa28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/us_ticker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void us_ticker_init(void)
7777

7878
nrf_timer_frequency_set(NRF_TIMER1, NRF_TIMER_FREQ_1MHz);
7979

80-
#ifdef NRF52
80+
#ifdef TARGET_NRF52
8181
nrf_timer_bit_width_set(NRF_TIMER1, NRF_TIMER_BIT_WIDTH_32);
8282
#else
8383
nrf_timer_bit_width_set(NRF_TIMER1, NRF_TIMER_BIT_WIDTH_16);

0 commit comments

Comments
 (0)