Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/ecspi/
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-3.5.0/mcux/mcux-sdk/drivers/spi/
Dfsl_spi.c742 uint32_t realBaudrate; in SPI_MasterSetBaudRate() local
771 realBaudrate = ((srcClock_Hz) / ((prescaler + 1U) * rateDivisorValue)); in SPI_MasterSetBaudRate()
775 if (freq >= realBaudrate) in SPI_MasterSetBaudRate()
777 diff = freq - realBaudrate; in SPI_MasterSetBaudRate()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/dspi/
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()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpspi/
Dfsl_lpspi.c540 uint32_t realBaudrate, bestBaudrate; in LPSPI_MasterSetBaudRate() local
571 realBaudrate = (srcClock_Hz / (s_baudratePrescaler[prescaler] * (scaler + 2U))); in LPSPI_MasterSetBaudRate()
576 if (desiredBaudrate >= realBaudrate) in LPSPI_MasterSetBaudRate()
578 diff = desiredBaudrate - realBaudrate; in LPSPI_MasterSetBaudRate()
585 bestBaudrate = realBaudrate; in LPSPI_MasterSetBaudRate()