Home
last modified time | relevance | path

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

/hal_nxp-2.7.6/mcux/drivers/imx8/
Dfsl_ecspi.c406 uint32_t realBaudrate = 0U; in ECSPI_SetBaudRate() local
424 realBaudrate = (srcClock_Hz / (preDividerValue + 1UL)) >> postDividerValue; in ECSPI_SetBaudRate()
425 if (realBaudrate > baudRate_Bps) in ECSPI_SetBaudRate()
427 diff = realBaudrate - baudRate_Bps; in ECSPI_SetBaudRate()
437 diff = baudRate_Bps - realBaudrate; in ECSPI_SetBaudRate()
/hal_nxp-2.7.6/mcux/drivers/kinetis/
Dfsl_spi.c621 uint32_t realBaudrate; in SPI_MasterSetBaudRate() local
642 realBaudrate = ((srcClock_Hz) / ((prescaler + 1) * rateDivisorValue)); in SPI_MasterSetBaudRate()
646 if (freq >= realBaudrate) in SPI_MasterSetBaudRate()
648 diff = freq - realBaudrate; in SPI_MasterSetBaudRate()
Dfsl_dspi.c437 uint32_t realBaudrate, bestBaudrate; in DSPI_MasterSetBaudRate() local
455realBaudrate = ((srcClock_Hz * dbr) / (s_baudratePrescaler[prescaler] * (s_baudrateScaler[scaler])… in DSPI_MasterSetBaudRate()
460 if (baudrate >= realBaudrate) in DSPI_MasterSetBaudRate()
462 diff = baudrate - realBaudrate; in DSPI_MasterSetBaudRate()
469 bestBaudrate = realBaudrate; in DSPI_MasterSetBaudRate()
Dfsl_lpspi.c437 uint32_t realBaudrate, bestBaudrate; in LPSPI_MasterSetBaudRate() local
468 realBaudrate = (srcClock_Hz / (s_baudratePrescaler[prescaler] * (scaler + 2U))); in LPSPI_MasterSetBaudRate()
473 if (desiredBaudrate >= realBaudrate) in LPSPI_MasterSetBaudRate()
475 diff = desiredBaudrate - realBaudrate; in LPSPI_MasterSetBaudRate()
482 bestBaudrate = realBaudrate; in LPSPI_MasterSetBaudRate()
/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_lpspi.c445 uint32_t realBaudrate, bestBaudrate; in LPSPI_MasterSetBaudRate() local
476 realBaudrate = (srcClock_Hz / (s_baudratePrescaler[prescaler] * (scaler + 2U))); in LPSPI_MasterSetBaudRate()
481 if (desiredBaudrate >= realBaudrate) in LPSPI_MasterSetBaudRate()
483 diff = desiredBaudrate - realBaudrate; in LPSPI_MasterSetBaudRate()
490 bestBaudrate = realBaudrate; in LPSPI_MasterSetBaudRate()