Searched refs:baudDiff (Results 1 – 5 of 5) sorted by relevance
/hal_nxp-2.7.6/mcux/drivers/kinetis/ |
D | fsl_lpsci.c | 223 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()
|
D | fsl_uart.c | 224 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 …]
|
D | fsl_lpuart.c | 253 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_Init() local 261 baudDiff = config->baudRate_Bps; in LPUART_Init() 278 if (tempDiff <= baudDiff) in LPUART_Init() 280 baudDiff = tempDiff; in LPUART_Init() 288 if (baudDiff > ((config->baudRate_Bps / 100U) * 3U)) in LPUART_Init() 569 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_SetBaudRate() local 577 baudDiff = baudRate_Bps; in LPUART_SetBaudRate() 594 if (tempDiff <= baudDiff) in LPUART_SetBaudRate() 596 baudDiff = tempDiff; in LPUART_SetBaudRate() 604 if (baudDiff < (uint32_t)((baudRate_Bps / 100U) * 3U)) in LPUART_SetBaudRate()
|
/hal_nxp-2.7.6/mcux/drivers/imx/ |
D | fsl_lpuart.c | 253 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_Init() local 261 baudDiff = config->baudRate_Bps; in LPUART_Init() 278 if (tempDiff <= baudDiff) in LPUART_Init() 280 baudDiff = tempDiff; in LPUART_Init() 288 if (baudDiff > ((config->baudRate_Bps / 100U) * 3U)) in LPUART_Init() 569 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_SetBaudRate() local 577 baudDiff = baudRate_Bps; in LPUART_SetBaudRate() 594 if (tempDiff <= baudDiff) in LPUART_SetBaudRate() 596 baudDiff = tempDiff; in LPUART_SetBaudRate() 604 if (baudDiff < (uint32_t)((baudRate_Bps / 100U) * 3U)) in LPUART_SetBaudRate()
|
/hal_nxp-2.7.6/mcux/drivers/imx8/ |
D | fsl_uart.c | 351 uint64_t baudDiff = 0U; in UART_SetBaudRate() local 433 baudDiff = (tempNumerator * (uint64_t)denominator) / (uint64_t)tempDenominator; in UART_SetBaudRate() 434 baudDiff = (baudDiff >= (uint64_t)baudRate_Bps) ? (baudDiff - (uint64_t)baudRate_Bps) : in UART_SetBaudRate() 435 ((uint64_t)baudRate_Bps - baudDiff); in UART_SetBaudRate() 437 if (baudDiff < ((uint64_t)baudRate_Bps / 100UL * 3UL)) in UART_SetBaudRate()
|