Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/flexio/uart/
Dfsl_flexio_uart.c131 uint16_t timerDiv = 0; in FLEXIO_UART_Init() local
188 timerDiv = (uint16_t)(srcClock_Hz / userConfig->baudRate_Bps); in FLEXIO_UART_Init()
189 timerDiv = timerDiv / 2U - 1U; in FLEXIO_UART_Init()
191 if (timerDiv > 0xFFU) in FLEXIO_UART_Init()
200 calculatedBaud = srcClock_Hz / (((uint32_t)timerDiv + 1U) * 2U); in FLEXIO_UART_Init()
211 timerCmp |= timerDiv; in FLEXIO_UART_Init()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/flexio/spi/
Dfsl_flexio_spi.c231 uint16_t timerDiv = 0; in FLEXIO_SPI_MasterInit() local
314 timerDiv = (uint16_t)(srcClock_Hz / masterConfig->baudRate_Bps); in FLEXIO_SPI_MasterInit()
315 timerDiv = timerDiv / 2U - 1U; in FLEXIO_SPI_MasterInit()
318 timerCmp |= timerDiv; in FLEXIO_SPI_MasterInit()
683 uint16_t timerDiv = 0; in FLEXIO_SPI_MasterSetBaudRate() local
688 timerDiv = (uint16_t)(srcClockHz / baudRate_Bps); in FLEXIO_SPI_MasterSetBaudRate()
689 timerDiv = timerDiv / 2U - 1U; in FLEXIO_SPI_MasterSetBaudRate()
693 timerCmp |= timerDiv; in FLEXIO_SPI_MasterSetBaudRate()
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/flexio/i2c/
Dfsl_flexio_i2c_master.c637 uint16_t timerDiv = 0; in FLEXIO_I2C_MasterInit() local
693 timerDiv = (uint16_t)(srcClock_Hz / masterConfig->baudRate_Bps) / 2U - 1U; in FLEXIO_I2C_MasterInit()
695 base->baudrate = srcClock_Hz / (2U * ((uint32_t)timerDiv + 1U)); in FLEXIO_I2C_MasterInit()
697 timerConfig.timerCompare = timerDiv; in FLEXIO_I2C_MasterInit()
914 uint16_t timerDiv = 0; in FLEXIO_I2C_MasterSetBaudRate() local
918 timerDiv = (uint16_t)((srcClock_Hz / baudRate_Bps) / 2U - 1U); in FLEXIO_I2C_MasterSetBaudRate()
920 flexioBase->TIMCMP[base->timerIndex[1]] = timerDiv; in FLEXIO_I2C_MasterSetBaudRate()
923 base->baudrate = srcClock_Hz / (2U * ((uint32_t)timerDiv + 1U)); in FLEXIO_I2C_MasterSetBaudRate()