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 <adam.wojasinski@nordicsemi.no>
This commit is contained in:
Adam Wojasinski 2022-08-26 14:21:32 +02:00 committed by Carles Cufí
parent 47db797236
commit 63ab9b3c6d
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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 |