Searched refs:sbrTemp (Results 1 – 2 of 2) 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 …]
311 uint16_t sbr, sbrTemp; in LPUART_Init() local327 … sbrTemp = (uint16_t)((srcClock_Hz * 10U / (config->baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_Init()329 if (sbrTemp == 0U) in LPUART_Init()331 sbrTemp = 1U; in LPUART_Init()333 else if (sbrTemp > LPUART_BAUD_SBR_MASK) in LPUART_Init()335 sbrTemp = LPUART_BAUD_SBR_MASK; in LPUART_Init()342 calculatedBaud = (srcClock_Hz / ((uint32_t)osrTemp * (uint32_t)sbrTemp)); in LPUART_Init()350 sbr = sbrTemp; /* update store the best SBR value calculated */ in LPUART_Init()639 uint16_t sbr, sbrTemp; in LPUART_SetBaudRate() local655 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()[all …]