Home
last modified time | relevance | path

Searched refs:tmpConfig (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/drivers/flexcomm/spi/
Dfsl_spi.c177 uint32_t tmpConfig; in SPI_MasterInit() local
204 tmpConfig = base->CFG; in SPI_MasterInit()
205tmpConfig &= ~(SPI_CFG_MASTER_MASK | SPI_CFG_LSBF_MASK | SPI_CFG_CPHA_MASK | SPI_CFG_CPOL_MASK | S… in SPI_MasterInit()
208 tmpConfig |= SPI_CFG_CPHA(config->phase); in SPI_MasterInit()
210 tmpConfig |= SPI_CFG_CPOL(config->polarity); in SPI_MasterInit()
212 tmpConfig |= SPI_CFG_LSBF(config->direction); in SPI_MasterInit()
214 tmpConfig |= SPI_CFG_MASTER(1); in SPI_MasterInit()
216 tmpConfig |= SPI_CFG_LOOP(config->enableLoopback); in SPI_MasterInit()
218 tmpConfig |= ((uint32_t)config->sselPol & (SPI_SSELPOL_MASK)); in SPI_MasterInit()
219 base->CFG = tmpConfig; in SPI_MasterInit()
[all …]
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexio/i2c/
Dfsl_flexio_i2c_master.c197 uint32_t tmpConfig = base->flexioBase->TIMCFG[base->timerIndex[1]]; in FLEXIO_I2C_MasterTransferInitStateMachine() local
198 tmpConfig &= ~FLEXIO_TIMCFG_TIMDIS_MASK; in FLEXIO_I2C_MasterTransferInitStateMachine()
199 tmpConfig |= FLEXIO_TIMCFG_TIMDIS(kFLEXIO_TimerDisableOnPreTimerDisable); in FLEXIO_I2C_MasterTransferInitStateMachine()
200 base->flexioBase->TIMCFG[base->timerIndex[1]] = tmpConfig; in FLEXIO_I2C_MasterTransferInitStateMachine()
1011 uint32_t tmpConfig; in FLEXIO_I2C_MasterAbortStop() local
1015 tmpConfig = base->flexioBase->TIMCFG[base->timerIndex[0]]; in FLEXIO_I2C_MasterAbortStop()
1016 tmpConfig &= ~FLEXIO_TIMCFG_TIMDIS_MASK; in FLEXIO_I2C_MasterAbortStop()
1017 tmpConfig |= FLEXIO_TIMCFG_TIMDIS(kFLEXIO_TimerDisableOnPinBothEdge); in FLEXIO_I2C_MasterAbortStop()
1018 base->flexioBase->TIMCFG[base->timerIndex[0]] = tmpConfig; in FLEXIO_I2C_MasterAbortStop()
1021 tmpConfig = base->flexioBase->TIMCFG[base->timerIndex[1]]; in FLEXIO_I2C_MasterAbortStop()
[all …]