Skip to content

Commit 56e0ff0

Browse files
Adam Wojasinskicarlescufi
authored andcommitted
tests: drivers: timer: Replace deprecated nrfx API
This commit replaces API that became deprecated with the release of nrfx2.9 - see CHANGELOG in zephyrproject-rtos:hal_nordic repository Signed-off-by: Adam Wojasinski <[email protected]>
1 parent 63ab9b3 commit 56e0ff0

File tree

1 file changed

+1
-1
lines changed
  • tests/drivers/timer/nrf_rtc_timer/src

1 file changed

+1
-1
lines changed

tests/drivers/timer/nrf_rtc_timer/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static void init_zli_timer0(void)
3131
{
3232
nrf_timer_mode_set(NRF_TIMER0, NRF_TIMER_MODE_TIMER);
3333
nrf_timer_bit_width_set(NRF_TIMER0, NRF_TIMER_BIT_WIDTH_32);
34-
nrf_timer_frequency_set(NRF_TIMER0, NRF_TIMER_FREQ_1MHz);
34+
nrf_timer_prescaler_set(NRF_TIMER0, NRF_TIMER_FREQ_1MHz);
3535
nrf_timer_cc_set(NRF_TIMER0, 0, 100);
3636
nrf_timer_int_enable(NRF_TIMER0, NRF_TIMER_INT_COMPARE0_MASK);
3737
nrf_timer_shorts_enable(NRF_TIMER0,

0 commit comments

Comments
 (0)