Home
last modified time | relevance | path

Searched refs:tempDiff (Results 1 – 2 of 2) 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
244 tempDiff = calculatedBaud - config->baudRate_Bps; in LPSCI_Init()
247 if (tempDiff > (config->baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))))) in LPSCI_Init()
249 tempDiff = config->baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))); in LPSCI_Init()
253 if (tempDiff <= baudDiff) in LPSCI_Init()
255 baudDiff = tempDiff; in LPSCI_Init()
357 uint32_t tempDiff, calculatedBaud, baudDiff; in LPSCI_SetBaudRate() local
377 tempDiff = calculatedBaud - baudRate_Bps; in LPSCI_SetBaudRate()
380 if (tempDiff > (baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))))) in LPSCI_SetBaudRate()
382 tempDiff = baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))); in LPSCI_SetBaudRate()
[all …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/lpuart/
Dfsl_lpuart.c313 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_Init() local
343tempDiff = calculatedBaud > config->baudRate_Bps ? (calculatedBaud - config->baudRate_Bps) : in LPUART_Init()
346 if (tempDiff <= baudDiff) in LPUART_Init()
348 baudDiff = tempDiff; in LPUART_Init()
641 uint32_t tempDiff, calculatedBaud, baudDiff; in LPUART_SetBaudRate() local
672tempDiff = calculatedBaud > baudRate_Bps ? (calculatedBaud - baudRate_Bps) : (baudRate_Bps - calcu… in LPUART_SetBaudRate()
674 if (tempDiff <= baudDiff) in LPUART_SetBaudRate()
676 baudDiff = tempDiff; in LPUART_SetBaudRate()