Lines Matching refs:osrTemp
222 uint32_t osrTemp; in LPSCI_Init() local
232 for (osrTemp = 4; osrTemp <= 32; osrTemp++) in LPSCI_Init()
235 sbrTemp = (srcClock_Hz / (config->baudRate_Bps * osrTemp)); in LPSCI_Init()
242 calculatedBaud = (srcClock_Hz / (osrTemp * sbrTemp)); 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()
256 osr = osrTemp; /* update and store the best OSR value calculated*/ in LPSCI_Init()
356 uint8_t osrTemp; in LPSCI_SetBaudRate() local
365 for (osrTemp = 4; osrTemp <= 32; osrTemp++) in LPSCI_SetBaudRate()
368 sbrTemp = (srcClock_Hz / (baudRate_Bps * osrTemp)); in LPSCI_SetBaudRate()
375 calculatedBaud = (srcClock_Hz / (osrTemp * sbrTemp)); 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()
389 osr = osrTemp; /* update and store the best OSR value calculated*/ in LPSCI_SetBaudRate()