Lines Matching refs:baudRate_Bps

216     assert(config->baudRate_Bps != 0U);  in UART_Init()
227 sbr = srcClock_Hz / (config->baudRate_Bps * 16U); in UART_Init()
239 uint32_t brfa = (2U * srcClock_Hz / (config->baudRate_Bps)) - 32U * sbr; in UART_Init()
244 …(tempBaud > config->baudRate_Bps) ? (tempBaud - config->baudRate_Bps) : (config->baudRate_Bps - te… in UART_Init()
248 baudDiff = (srcClock_Hz / (sbr * 16U)) - config->baudRate_Bps; in UART_Init()
251 if (baudDiff > (config->baudRate_Bps - (srcClock_Hz / (16U * ((uint32_t)sbr + 1U))))) in UART_Init()
253 baudDiff = config->baudRate_Bps - (srcClock_Hz / (16U * ((uint32_t)sbr + 1U))); in UART_Init()
260 if (baudDiff > ((config->baudRate_Bps / 100U) * 3U)) in UART_Init()
404 config->baudRate_Bps = 115200U; in UART_GetDefaultConfig()
437 status_t UART_SetBaudRate(UART_Type *base, uint32_t baudRate_Bps, uint32_t srcClock_Hz) in UART_SetBaudRate() argument
439 assert(baudRate_Bps != 0U); in UART_SetBaudRate()
446 sbr = srcClock_Hz / (baudRate_Bps * 16U); in UART_SetBaudRate()
458 uint32_t brfa = (2U * srcClock_Hz / (baudRate_Bps)) - 32U * sbr; in UART_SetBaudRate()
462 baudDiff = (tempBaud > baudRate_Bps) ? (tempBaud - baudRate_Bps) : (baudRate_Bps - tempBaud); in UART_SetBaudRate()
465 baudDiff = (srcClock_Hz / (sbr * 16U)) - baudRate_Bps; in UART_SetBaudRate()
468 if (baudDiff > (baudRate_Bps - (srcClock_Hz / (16U * (sbr + 1U))))) in UART_SetBaudRate()
470 baudDiff = baudRate_Bps - (srcClock_Hz / (16U * (sbr + 1U))); in UART_SetBaudRate()
477 if (baudDiff < ((baudRate_Bps / 100U) * 3U)) in UART_SetBaudRate()