Home
last modified time | relevance | path

Searched refs:best_diff (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
375 if (diff < best_diff) in USART_SetBaudRate()
377 best_diff = diff; in USART_SetBaudRate()
392 assert(best_diff < ((baudrate_Bps / 100U) * 3U)); 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
458 if ((osrval <= 8U) && (best_diff <= allowed_error)) in USART_SetBaudRate()
470 if (diff < best_diff) in USART_SetBaudRate()
472 best_diff = diff; in USART_SetBaudRate()