Home
last modified time | relevance | path

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

/hal_nxp-2.7.6/mcux/drivers/kinetis/
Dfsl_lpsci.c222 uint32_t osrTemp; in LPSCI_Init() local
232 for (osrTemp = 4; osrTemp <= 32; osrTemp++) in LPSCI_Init()
235 sbrTemp = (srcClock_Hz / (config->baudRate_Bps * osrTemp)); 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()
256 osr = osrTemp; /* update and store the best OSR value calculated*/ in LPSCI_Init()
356 uint8_t osrTemp; in LPSCI_SetBaudRate() local
365 for (osrTemp = 4; osrTemp <= 32; osrTemp++) in LPSCI_SetBaudRate()
368 sbrTemp = (srcClock_Hz / (baudRate_Bps * osrTemp)); in LPSCI_SetBaudRate()
[all …]
Dfsl_lpuart.c252 uint8_t osr, osrTemp; in LPUART_Init() local
264 for (osrTemp = 4U; osrTemp <= 32U; osrTemp++) in LPUART_Init()
267 … sbrTemp = (uint16_t)((srcClock_Hz * 10U / (config->baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_Init()
274 calculatedBaud = (srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp)); in LPUART_Init()
281 osr = osrTemp; /* update and store the best OSR value calculated */ in LPUART_Init()
568 uint8_t osr, osrTemp; in LPUART_SetBaudRate() local
580 for (osrTemp = 4U; osrTemp <= 32U; osrTemp++) in LPUART_SetBaudRate()
583 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()
590 calculatedBaud = srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp); in LPUART_SetBaudRate()
597 osr = osrTemp; /* update and store the best OSR value calculated */ in LPUART_SetBaudRate()
/hal_nxp-2.7.6/mcux/drivers/imx/
Dfsl_lpuart.c252 uint8_t osr, osrTemp; in LPUART_Init() local
264 for (osrTemp = 4U; osrTemp <= 32U; osrTemp++) in LPUART_Init()
267 … sbrTemp = (uint16_t)((srcClock_Hz * 10U / (config->baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_Init()
274 calculatedBaud = (srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp)); in LPUART_Init()
281 osr = osrTemp; /* update and store the best OSR value calculated */ in LPUART_Init()
568 uint8_t osr, osrTemp; in LPUART_SetBaudRate() local
580 for (osrTemp = 4U; osrTemp <= 32U; osrTemp++) in LPUART_SetBaudRate()
583 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()
590 calculatedBaud = srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp); in LPUART_SetBaudRate()
597 osr = osrTemp; /* update and store the best OSR value calculated */ in LPUART_SetBaudRate()