Home
last modified time | relevance | path

Searched refs:curr_freq (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/spi/
Dspi_nxp_s32.c100 uint32_t curr_freq; in spi_nxp_s32_getbestfreq() local
119 curr_freq = clock_frequency * 1U / in spi_nxp_s32_getbestfreq()
126 if (curr_freq > requested_baud) { in spi_nxp_s32_getbestfreq()
133 if ((requested_baud - best_freq) > (requested_baud - curr_freq)) { in spi_nxp_s32_getbestfreq()
134 best_freq = curr_freq; in spi_nxp_s32_getbestfreq()
154 curr_freq = clock_frequency * 1U / in spi_nxp_s32_getbestfreq()
157 if (curr_freq <= requested_baud) { in spi_nxp_s32_getbestfreq()
159 if ((requested_baud - best_freq) > (requested_baud - curr_freq)) { in spi_nxp_s32_getbestfreq()
160 best_freq = curr_freq; in spi_nxp_s32_getbestfreq()