Home
last modified time | relevance | path

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

/hal_nxp-3.6.0/mcux/mcux-sdk/components/spi/
Dfsl_adapter_dspi.c106 dspi_master_config_t dspiConfig; in HAL_SpiMasterInit() local
113 DSPI_MasterGetDefaultConfig(&dspiConfig); in HAL_SpiMasterInit()
115dspiConfig.ctarConfig.cpol = (kHAL_SpiClockPolarityActiveHigh == config->polarity) ? kDSPI_ClockPo… in HAL_SpiMasterInit()
117 dspiConfig.ctarConfig.cpha = in HAL_SpiMasterInit()
119dspiConfig.ctarConfig.direction = (kHAL_SpiMsbFirst == config->direction) ? kDSPI_MsbFirst : kDSPI… in HAL_SpiMasterInit()
120 dspiConfig.ctarConfig.baudRate = config->baudRate_Bps; in HAL_SpiMasterInit()
124 …DSPI_MasterInit((SPI_Type *)s_spiBases[masterHandle->instance], (void *)&dspiConfig, config->srcCl… in HAL_SpiMasterInit()
132 dspi_slave_config_t dspiConfig; in HAL_SpiSlaveInit() local
139 DSPI_SlaveGetDefaultConfig(&dspiConfig); in HAL_SpiSlaveInit()
141dspiConfig.ctarConfig.cpol = (kHAL_SpiClockPolarityActiveHigh == config->polarity) ? kDSPI_ClockPo… in HAL_SpiSlaveInit()
[all …]