Home
last modified time | relevance | path

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

/hal_nxp-2.7.6/mcux/drivers/kinetis/
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 …]
Dfsl_lpuart.c251 uint16_t sbr, sbrTemp; in LPUART_Init() local
267sbrTemp = (uint16_t)((srcClock_Hz * 10U / (config->baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_Init()
269 if (sbrTemp == 0U) in LPUART_Init()
271 sbrTemp = 1U; in LPUART_Init()
274 calculatedBaud = (srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp)); in LPUART_Init()
282 sbr = sbrTemp; /* update store the best SBR value calculated */ in LPUART_Init()
567 uint16_t sbr, sbrTemp; in LPUART_SetBaudRate() local
583 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()
585 if (sbrTemp == 0U) in LPUART_SetBaudRate()
587 sbrTemp = 1U; in LPUART_SetBaudRate()
[all …]
/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_lpuart.c251 uint16_t sbr, sbrTemp; in LPUART_Init() local
267sbrTemp = (uint16_t)((srcClock_Hz * 10U / (config->baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_Init()
269 if (sbrTemp == 0U) in LPUART_Init()
271 sbrTemp = 1U; in LPUART_Init()
274 calculatedBaud = (srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp)); in LPUART_Init()
282 sbr = sbrTemp; /* update store the best SBR value calculated */ in LPUART_Init()
567 uint16_t sbr, sbrTemp; in LPUART_SetBaudRate() local
583 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()
585 if (sbrTemp == 0U) in LPUART_SetBaudRate()
587 sbrTemp = 1U; in LPUART_SetBaudRate()
[all …]