Searched refs:best_osrval (Results 1 – 2 of 2) sorted by relevance
355 uint32_t best_diff = (uint32_t)-1, best_osrval = 0xf, best_brgval = (uint32_t)-1; in USART_SetBaudRate() local366 for (osrval = best_osrval; osrval >= 8U; osrval--) in USART_SetBaudRate()378 best_osrval = osrval; in USART_SetBaudRate()394 base->OSR = best_osrval; in USART_SetBaudRate()
427 uint32_t best_diff = (uint32_t)-1, best_osrval = 0xf, best_brgval = (uint32_t)-1; in USART_SetBaudRate() local451 for (osrval = best_osrval; osrval >= 4U; osrval--) in USART_SetBaudRate()473 best_osrval = osrval; in USART_SetBaudRate()480 baudrate = srcClock_Hz / ((best_osrval + 1U) * (best_brgval + 1U)); in USART_SetBaudRate()493 base->OSR = best_osrval; in USART_SetBaudRate()