Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpsci/
Dfsl_lpsci.c223 uint32_t tempDiff, calculatedBaud, baudDiff; in LPSCI_Init() local
231 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() local
364 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()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/uart/
Dfsl_uart.c224 uint32_t baudDiff = 0U; in UART_Init() local
243 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() local
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()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpuart/
Dfsl_lpuart.c313 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_Init() local
321 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() local
649 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()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/iuart/
Dfsl_uart.c359 uint64_t baudDiff = 0U; in UART_SetBaudRate() local
441 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()