From 63ab9b3c6d74bc624c94851afcd3c8bb3c2c6d84 Mon Sep 17 00:00:00 2001 From: Adam Wojasinski Date: Fri, 26 Aug 2022 14:21:32 +0200 Subject: [PATCH] drivers: 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 --- drivers/counter/counter_nrfx_timer.c | 2 +- drivers/display/display_nrf_led_matrix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/counter/counter_nrfx_timer.c b/drivers/counter/counter_nrfx_timer.c index 72b7dfaf550..7668d90ff4b 100644 --- a/drivers/counter/counter_nrfx_timer.c +++ b/drivers/counter/counter_nrfx_timer.c @@ -291,7 +291,7 @@ static int init_timer(const struct device *dev, nrf_timer_bit_width_set(reg, config->bit_width); nrf_timer_mode_set(reg, config->mode); - nrf_timer_frequency_set(reg, config->freq); + nrf_timer_prescaler_set(reg, config->freq); nrf_timer_cc_set(reg, TOP_CH, counter_get_max_top_value(dev)); diff --git a/drivers/display/display_nrf_led_matrix.c b/drivers/display/display_nrf_led_matrix.c index 5ed40ef245e..6a65c280a2a 100644 --- a/drivers/display/display_nrf_led_matrix.c +++ b/drivers/display/display_nrf_led_matrix.c @@ -509,7 +509,7 @@ static int instance_init(const struct device *dev) } nrf_timer_bit_width_set(dev_config->timer, NRF_TIMER_BIT_WIDTH_16); - nrf_timer_frequency_set(dev_config->timer, TIMER_CLK_CONFIG); + nrf_timer_prescaler_set(dev_config->timer, TIMER_CLK_CONFIG); nrf_timer_cc_set(dev_config->timer, 0, PIXEL_PERIOD); nrf_timer_shorts_set(dev_config->timer, NRF_TIMER_SHORT_COMPARE0_STOP_MASK |