Home
last modified time | relevance | path

Searched refs:sbrTemp (Results 1 – 3 of 3) sorted by relevance

/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpsci/
Dfsl_lpsci.c220 uint16_t sbrTemp; in LPSCI_Init() local
235 sbrTemp = (srcClock_Hz / (config->baudRate_Bps * osrTemp)); in LPSCI_Init()
237 if (sbrTemp == 0) in LPSCI_Init()
239 sbrTemp = 1; in LPSCI_Init()
242 calculatedBaud = (srcClock_Hz / (osrTemp * sbrTemp)); in LPSCI_Init()
247 if (tempDiff > (config->baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))))) in LPSCI_Init()
249 tempDiff = config->baudRate_Bps - (srcClock_Hz / (osrTemp * (sbrTemp + 1))); in LPSCI_Init()
250 sbrTemp++; in LPSCI_Init()
257 sbr = sbrTemp; /* update store the best SBR value calculated*/ in LPSCI_Init()
354 uint16_t sbrTemp; in LPSCI_SetBaudRate() local
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpflexcomm/lpuart/
Dfsl_lpuart.c283 uint16_t sbr, sbrTemp; in LPUART_Init() local
299sbrTemp = (uint16_t)((srcClock_Hz * 10U / (config->baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_Init()
301 if (sbrTemp == 0U) in LPUART_Init()
303 sbrTemp = 1U; in LPUART_Init()
305 else if (sbrTemp > LPUART_BAUD_SBR_MASK) in LPUART_Init()
307 sbrTemp = LPUART_BAUD_SBR_MASK; in LPUART_Init()
310 calculatedBaud = (srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp)); in LPUART_Init()
318 sbr = sbrTemp; /* update store the best SBR value calculated */ in LPUART_Init()
617 uint16_t sbr, sbrTemp; in LPUART_SetBaudRate() local
633 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()
[all …]
/hal_nxp-3.7.0/mcux/mcux-sdk/drivers/lpuart/
Dfsl_lpuart.c320 uint16_t sbr, sbrTemp; in LPUART_Init() local
336sbrTemp = (uint16_t)((srcClock_Hz * 10U / (config->baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_Init()
338 if (sbrTemp == 0U) in LPUART_Init()
340 sbrTemp = 1U; in LPUART_Init()
342 else if (sbrTemp > LPUART_BAUD_SBR_MASK) in LPUART_Init()
344 sbrTemp = LPUART_BAUD_SBR_MASK; in LPUART_Init()
351 calculatedBaud = (srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp)); in LPUART_Init()
359 sbr = sbrTemp; /* update store the best SBR value calculated */ in LPUART_Init()
652 uint16_t sbr, sbrTemp; in LPUART_SetBaudRate() local
668 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()
[all …]