Searched refs:best_diff (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() local375 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()
427 uint32_t best_diff = (uint32_t)-1, best_osrval = 0xf, best_brgval = (uint32_t)-1; in USART_SetBaudRate() local458 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()