Searched refs:realBaudrate (Results 1 – 4 of 4) 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()
742 uint32_t realBaudrate; in SPI_MasterSetBaudRate() local771 realBaudrate = ((srcClock_Hz) / ((prescaler + 1U) * rateDivisorValue)); in SPI_MasterSetBaudRate()775 if (freq >= realBaudrate) in SPI_MasterSetBaudRate()777 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()
540 uint32_t realBaudrate, bestBaudrate; in LPSPI_MasterSetBaudRate() local571 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()