Searched refs:sbrTemp (Results 1 – 3 of 3) sorted by relevance
220 uint16_t sbrTemp; in LPSCI_Init() local235 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 …]
251 uint16_t sbr, sbrTemp; in LPUART_Init() local267 … sbrTemp = (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() local583 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 …]