Home
last modified time | relevance | path

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

/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/lpc_miniusart/
Dfsl_usart.c356 uint32_t diff = 0U, brgval = 0U, osrval = 0U, baudrate = 0U; in USART_SetBaudRate() local
366 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()
/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/flexcomm/usart/
Dfsl_usart.c428 uint32_t osrval, brgval, diff, baudrate, allowed_error; in USART_SetBaudRate() local
451 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()