Home
last modified time | relevance | path

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

/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/lpc_miniusart/
Dfsl_usart.c355 uint32_t best_diff = (uint32_t)-1, best_osrval = 0xf, best_brgval = (uint32_t)-1; in USART_SetBaudRate() local
366 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()
/hal_nxp-3.6.0/mcux/mcux-sdk/drivers/flexcomm/usart/
Dfsl_usart.c427 uint32_t best_diff = (uint32_t)-1, best_osrval = 0xf, best_brgval = (uint32_t)-1; in USART_SetBaudRate() local
451 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()