Searched refs:osrval (Results 1 – 2 of 2) sorted by relevance
356 uint32_t diff = 0U, brgval = 0U, osrval = 0U, baudrate = 0U; in USART_SetBaudRate() local366 for (osrval = best_osrval; osrval >= 8U; osrval--) in USART_SetBaudRate()368 brgval = (((srcClock_Hz * 10U) / ((osrval + 1U) * baudrate_Bps)) - 5U) / 10U; in USART_SetBaudRate()373 baudrate = srcClock_Hz / ((osrval + 1U) * (brgval + 1U)); in USART_SetBaudRate()378 best_osrval = osrval; in USART_SetBaudRate()
428 uint32_t osrval, brgval, diff, baudrate, allowed_error; in USART_SetBaudRate() local451 for (osrval = best_osrval; osrval >= 4U; osrval--) in USART_SetBaudRate()458 if ((osrval <= 8U) && (best_diff <= allowed_error)) in USART_SetBaudRate()463 brgval = (((srcClock_Hz * 10U) / ((osrval + 1U) * baudrate_Bps)) - 5U) / 10U; in USART_SetBaudRate()468 baudrate = srcClock_Hz / ((osrval + 1U) * (brgval + 1U)); in USART_SetBaudRate()473 best_osrval = osrval; in USART_SetBaudRate()