Home
last modified time | relevance | path

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

/hal_openisa-latest/vega_sdk_riscv/devices/RV32M1/drivers/
Dfsl_flexio_spi.c148 flexio_timer_config_t timerConfig; in FLEXIO_SPI_MasterInit() local
155 memset(&timerConfig, 0, sizeof(timerConfig)); in FLEXIO_SPI_MasterInit()
218 timerConfig.triggerSelect = FLEXIO_TIMER_TRIGGER_SEL_SHIFTnSTAT(base->shifterIndex[0]); in FLEXIO_SPI_MasterInit()
219 timerConfig.triggerPolarity = kFLEXIO_TimerTriggerPolarityActiveLow; in FLEXIO_SPI_MasterInit()
220 timerConfig.triggerSource = kFLEXIO_TimerTriggerSourceInternal; in FLEXIO_SPI_MasterInit()
221 timerConfig.pinConfig = kFLEXIO_PinConfigOutput; in FLEXIO_SPI_MasterInit()
222 timerConfig.pinSelect = base->SCKPinIndex; in FLEXIO_SPI_MasterInit()
223 timerConfig.pinPolarity = kFLEXIO_PinActiveHigh; in FLEXIO_SPI_MasterInit()
224 timerConfig.timerMode = kFLEXIO_TimerModeDual8BitBaudBit; in FLEXIO_SPI_MasterInit()
225 timerConfig.timerOutput = kFLEXIO_TimerOutputZeroNotAffectedByReset; in FLEXIO_SPI_MasterInit()
[all …]
Dfsl_flexio_i2c_master.c354 flexio_timer_config_t timerConfig; in FLEXIO_I2C_MasterInit() local
360 memset(&timerConfig, 0, sizeof(timerConfig)); in FLEXIO_I2C_MasterInit()
397 timerConfig.triggerSelect = FLEXIO_TIMER_TRIGGER_SEL_SHIFTnSTAT(base->shifterIndex[0]); in FLEXIO_I2C_MasterInit()
398 timerConfig.triggerPolarity = kFLEXIO_TimerTriggerPolarityActiveLow; in FLEXIO_I2C_MasterInit()
399 timerConfig.triggerSource = kFLEXIO_TimerTriggerSourceInternal; in FLEXIO_I2C_MasterInit()
400 timerConfig.pinConfig = kFLEXIO_PinConfigOpenDrainOrBidirection; in FLEXIO_I2C_MasterInit()
401 timerConfig.pinSelect = base->SCLPinIndex; in FLEXIO_I2C_MasterInit()
402 timerConfig.pinPolarity = kFLEXIO_PinActiveHigh; in FLEXIO_I2C_MasterInit()
403 timerConfig.timerMode = kFLEXIO_TimerModeDual8BitBaudBit; in FLEXIO_I2C_MasterInit()
404 timerConfig.timerOutput = kFLEXIO_TimerOutputZeroNotAffectedByReset; in FLEXIO_I2C_MasterInit()
[all …]
Dfsl_flexio_uart.c99 flexio_timer_config_t timerConfig; in FLEXIO_UART_Init() local
107 memset(&timerConfig, 0, sizeof(timerConfig)); in FLEXIO_UART_Init()
144 timerConfig.triggerSelect = FLEXIO_TIMER_TRIGGER_SEL_SHIFTnSTAT(base->shifterIndex[0]); in FLEXIO_UART_Init()
145 timerConfig.triggerPolarity = kFLEXIO_TimerTriggerPolarityActiveLow; in FLEXIO_UART_Init()
146 timerConfig.triggerSource = kFLEXIO_TimerTriggerSourceInternal; in FLEXIO_UART_Init()
147 timerConfig.pinConfig = kFLEXIO_PinConfigOutputDisabled; in FLEXIO_UART_Init()
148 timerConfig.pinSelect = base->TxPinIndex; in FLEXIO_UART_Init()
149 timerConfig.pinPolarity = kFLEXIO_PinActiveHigh; in FLEXIO_UART_Init()
150 timerConfig.timerMode = kFLEXIO_TimerModeDual8BitBaudBit; in FLEXIO_UART_Init()
151 timerConfig.timerOutput = kFLEXIO_TimerOutputOneNotAffectedByReset; in FLEXIO_UART_Init()
[all …]
Dfsl_flexio.c171 …d FLEXIO_SetTimerConfig(FLEXIO_Type *base, uint8_t index, const flexio_timer_config_t *timerConfig) in FLEXIO_SetTimerConfig() argument
174 …FLEXIO_TIMCFG_TIMOUT(timerConfig->timerOutput) | FLEXIO_TIMCFG_TIMDEC(timerConfig->timerDecrement)… in FLEXIO_SetTimerConfig()
175 … FLEXIO_TIMCFG_TIMRST(timerConfig->timerReset) | FLEXIO_TIMCFG_TIMDIS(timerConfig->timerDisable) | in FLEXIO_SetTimerConfig()
176 … FLEXIO_TIMCFG_TIMENA(timerConfig->timerEnable) | FLEXIO_TIMCFG_TSTOP(timerConfig->timerStop) | in FLEXIO_SetTimerConfig()
177 FLEXIO_TIMCFG_TSTART(timerConfig->timerStart); in FLEXIO_SetTimerConfig()
179 base->TIMCMP[index] = FLEXIO_TIMCMP_CMP(timerConfig->timerCompare); in FLEXIO_SetTimerConfig()
181 base->TIMCTL[index] = FLEXIO_TIMCTL_TRGSEL(timerConfig->triggerSelect) | in FLEXIO_SetTimerConfig()
182 FLEXIO_TIMCTL_TRGPOL(timerConfig->triggerPolarity) | in FLEXIO_SetTimerConfig()
183 FLEXIO_TIMCTL_TRGSRC(timerConfig->triggerSource) | in FLEXIO_SetTimerConfig()
184 … FLEXIO_TIMCTL_PINCFG(timerConfig->pinConfig) | FLEXIO_TIMCTL_PINSEL(timerConfig->pinSelect) | in FLEXIO_SetTimerConfig()
[all …]
Dfsl_flexio.h452 … FLEXIO_SetTimerConfig(FLEXIO_Type *base, uint8_t index, const flexio_timer_config_t *timerConfig);