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 …]
283 uint16_t sbr, sbrTemp; in LPUART_Init() local299 … sbrTemp = (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() local633 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()[all …]
320 uint16_t sbr, sbrTemp; in LPUART_Init() local336 … sbrTemp = (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() local668 sbrTemp = (uint16_t)((srcClock_Hz * 10U / (baudRate_Bps * (uint32_t)osrTemp) + 5U) / 10U); in LPUART_SetBaudRate()[all …]