Searched refs:realBaudrate (Results 1 – 5 of 5) sorted by relevance
406 uint32_t realBaudrate = 0U; in ECSPI_SetBaudRate() local424 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()
621 uint32_t realBaudrate; in SPI_MasterSetBaudRate() local642 realBaudrate = ((srcClock_Hz) / ((prescaler + 1) * rateDivisorValue)); in SPI_MasterSetBaudRate()646 if (freq >= realBaudrate) in SPI_MasterSetBaudRate()648 diff = freq - realBaudrate; in SPI_MasterSetBaudRate()
437 uint32_t realBaudrate, bestBaudrate; in DSPI_MasterSetBaudRate() local455 …realBaudrate = ((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()
437 uint32_t realBaudrate, bestBaudrate; in LPSPI_MasterSetBaudRate() local468 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()
445 uint32_t realBaudrate, bestBaudrate; in LPSPI_MasterSetBaudRate() local476 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()