Searched refs:brgval (Results 1 – 2 of 2) sorted by relevance
356 uint32_t diff = 0U, brgval = 0U, osrval = 0U, baudrate = 0U; in USART_SetBaudRate() local361 brgval = srcClock_Hz / baudrate_Bps; in USART_SetBaudRate()362 base->BRG = brgval - 1U; in USART_SetBaudRate()368 brgval = (((srcClock_Hz * 10U) / ((osrval + 1U) * baudrate_Bps)) - 5U) / 10U; in USART_SetBaudRate()369 if (brgval > 0xFFFFU) in USART_SetBaudRate()373 baudrate = srcClock_Hz / ((osrval + 1U) * (brgval + 1U)); in USART_SetBaudRate()379 best_brgval = brgval; in USART_SetBaudRate()398 uint32_t brgval = 0U; in USART_SetBaudRate() local402 brgval = srcClock_Hz / baudrate_Bps; in USART_SetBaudRate()403 base->BRG = brgval - 1U; in USART_SetBaudRate()[all …]
428 uint32_t osrval, brgval, diff, baudrate, allowed_error; in USART_SetBaudRate() local442 brgval = srcClock_Hz / baudrate_Bps; in USART_SetBaudRate()443 base->BRG = brgval - 1U; in USART_SetBaudRate()463 brgval = (((srcClock_Hz * 10U) / ((osrval + 1U) * baudrate_Bps)) - 5U) / 10U; in USART_SetBaudRate()464 if (brgval > 0xFFFFU) in USART_SetBaudRate()468 baudrate = srcClock_Hz / ((osrval + 1U) * (brgval + 1U)); in USART_SetBaudRate()474 best_brgval = brgval; in USART_SetBaudRate()