Home
last modified time | relevance | path

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

/hal_openisa-latest/vega_sdk_riscv/devices/RV32M1/drivers/
Dfsl_lpuart.c222 uint32_t osr, osrTemp, tempDiff, calculatedBaud, baudDiff; in LPUART_Init() local
245 tempDiff = calculatedBaud - config->baudRate_Bps; in LPUART_Init()
248 if (tempDiff > (config->baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))))) in LPUART_Init()
250 tempDiff = config->baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))); in LPUART_Init()
254 if (tempDiff <= baudDiff) in LPUART_Init()
256 baudDiff = tempDiff; in LPUART_Init()
498 uint32_t osr, osrTemp, tempDiff, calculatedBaud, baudDiff; in LPUART_SetBaudRate() local
521 tempDiff = calculatedBaud - baudRate_Bps; in LPUART_SetBaudRate()
524 if (tempDiff > (baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))))) in LPUART_SetBaudRate()
526 tempDiff = baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))); in LPUART_SetBaudRate()
[all …]