Searched refs:baudDiff (Results 1 – 4 of 4) sorted by relevance
223 uint32_t tempDiff, calculatedBaud, baudDiff; in LPSCI_Init() local231 baudDiff = config->baudRate_Bps; in LPSCI_Init()253 if (tempDiff <= baudDiff) in LPSCI_Init()255 baudDiff = tempDiff; in LPSCI_Init()263 if (baudDiff > ((config->baudRate_Bps / 100) * 3)) in LPSCI_Init()357 uint32_t tempDiff, calculatedBaud, baudDiff; in LPSCI_SetBaudRate() local364 baudDiff = baudRate_Bps; in LPSCI_SetBaudRate()386 if (tempDiff <= baudDiff) in LPSCI_SetBaudRate()388 baudDiff = tempDiff; in LPSCI_SetBaudRate()396 if (baudDiff < ((baudRate_Bps / 100) * 3)) in LPSCI_SetBaudRate()
224 uint32_t baudDiff = 0U; in UART_Init() local243 baudDiff = 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()442 uint32_t baudDiff = 0; in UART_SetBaudRate() local462 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()[all …]
313 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_Init() local321 baudDiff = config->baudRate_Bps; in LPUART_Init()346 if (tempDiff <= baudDiff) in LPUART_Init()348 baudDiff = tempDiff; in LPUART_Init()356 if (baudDiff > ((config->baudRate_Bps / 100U) * 3U)) in LPUART_Init()641 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_SetBaudRate() local649 baudDiff = baudRate_Bps; in LPUART_SetBaudRate()674 if (tempDiff <= baudDiff) in LPUART_SetBaudRate()676 baudDiff = tempDiff; in LPUART_SetBaudRate()684 if (baudDiff < (uint32_t)((baudRate_Bps / 100U) * 3U)) in LPUART_SetBaudRate()
359 uint64_t baudDiff = 0U; in UART_SetBaudRate() local441 baudDiff = (tempNumerator * (uint64_t)denominator) / (uint64_t)tempDenominator; in UART_SetBaudRate()442 baudDiff = (baudDiff >= (uint64_t)baudRate_Bps) ? (baudDiff - (uint64_t)baudRate_Bps) : in UART_SetBaudRate()443 ((uint64_t)baudRate_Bps - baudDiff); in UART_SetBaudRate()445 if (baudDiff < ((uint64_t)baudRate_Bps / 100UL * 3UL)) in UART_SetBaudRate()