Home
last modified time | relevance | path

Searched refs:brgval (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
361 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() local
402 brgval = srcClock_Hz / baudrate_Bps; in USART_SetBaudRate()
403 base->BRG = brgval - 1U; in USART_SetBaudRate()
[all …]
/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
442 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()