Skip to content

Commit 01d85c2

Browse files
Adam Wojasinskicarlescufi
authored andcommitted
boards: arm: qemu_cortex_m0: 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 00aa80b commit 01d85c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boards/arm/qemu_cortex_m0/nrf_timer_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int sys_clock_driver_init(const struct device *dev)
236236
ARG_UNUSED(dev);
237237

238238
/* FIXME switch to 1 MHz once this is fixed in QEMU */
239-
nrf_timer_frequency_set(TIMER, NRF_TIMER_FREQ_2MHz);
239+
nrf_timer_prescaler_set(TIMER, NRF_TIMER_FREQ_2MHz);
240240
nrf_timer_bit_width_set(TIMER, NRF_TIMER_BIT_WIDTH_32);
241241

242242
IRQ_CONNECT(TIMER0_IRQn, 1, timer0_nrf_isr, 0, 0);

0 commit comments

Comments
 (0)