Skip to content
Commit fdb631c5 authored by Johann Fischer's avatar Johann Fischer Committed by Carles Cufí
Browse files

drivers: spi_nrfx_spim: bring back get_nrf_spim_frequency



Commit 246393e8
("drivers: spi: spi_nrfx_spim: Remove nrf_frequency_t handling")'
introduced two changes, one of them is removing the function
get_nrf_spim_frequency with a strange justification.
This change  breaks support for peripherals written in a common way,
where the maximum frequency is set to the maximum supported
by the peripheral, not the controller, see shields for example.

On the occasion of bringing it back, the original function was
refactored to be easier to read and understand.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
Signed-off-by: default avatarAndrzej Głąbek <andrzej.glabek@nordicsemi.no>
parent 0972cb9d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment