Searched refs:osrTemp (Results 1 – 1 of 1) sorted by relevance
222 uint32_t osr, osrTemp, tempDiff, calculatedBaud, baudDiff; in LPUART_Init() local233 for (osrTemp = 4; osrTemp <= 32; osrTemp++) in LPUART_Init()236 sbrTemp = (srcClock_Hz / (config->baudRate_Bps * osrTemp)); in LPUART_Init()243 calculatedBaud = (srcClock_Hz / (osrTemp * sbrTemp)); 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()257 osr = osrTemp; /* update and store the best OSR value calculated */ in LPUART_Init()498 uint32_t osr, osrTemp, tempDiff, calculatedBaud, baudDiff; in LPUART_SetBaudRate() local509 for (osrTemp = 4; osrTemp <= 32; osrTemp++) in LPUART_SetBaudRate()512 sbrTemp = (srcClock_Hz / (baudRate_Bps * osrTemp)); in LPUART_SetBaudRate()[all …]