Lines Matching refs:timerConfig

99 	flexio_timer_config_t timerConfig;  in pwm_nxp_flexio_set_cycles()  local
140 timerConfig.timerOutput = kFLEXIO_TimerOutputOneNotAffectedByReset; in pwm_nxp_flexio_set_cycles()
141 timerConfig.timerMode = kFLEXIO_TimerModeDual8BitPWM; in pwm_nxp_flexio_set_cycles()
144 timerConfig.timerOutput = kFLEXIO_TimerOutputZeroNotAffectedByReset; in pwm_nxp_flexio_set_cycles()
145 timerConfig.timerMode = kFLEXIO_TimerModeDual8BitPWMLow; in pwm_nxp_flexio_set_cycles()
150 timerConfig.timerCompare = ((uint8_t)(pulse_cycles - 1U)) | in pwm_nxp_flexio_set_cycles()
154 timerConfig.timerDecrement = pwm_info->prescaler; in pwm_nxp_flexio_set_cycles()
155 timerConfig.timerStop = kFLEXIO_TimerStopBitDisabled; in pwm_nxp_flexio_set_cycles()
156 timerConfig.timerEnable = kFLEXIO_TimerEnabledAlways; in pwm_nxp_flexio_set_cycles()
157 timerConfig.timerDisable = kFLEXIO_TimerDisableNever; in pwm_nxp_flexio_set_cycles()
158 timerConfig.timerStart = kFLEXIO_TimerStartBitDisabled; in pwm_nxp_flexio_set_cycles()
159 timerConfig.timerReset = kFLEXIO_TimerResetNever; in pwm_nxp_flexio_set_cycles()
160 timerConfig.triggerSource = kFLEXIO_TimerTriggerSourceInternal; in pwm_nxp_flexio_set_cycles()
163 timerConfig.pinConfig = FLEXIO_PWM_TIMER_PIN_OUTPUT_ENABLE; in pwm_nxp_flexio_set_cycles()
164 timerConfig.pinPolarity = polarity; in pwm_nxp_flexio_set_cycles()
167 timerConfig.pinSelect = pwm_info->pin_id; in pwm_nxp_flexio_set_cycles()
169 FLEXIO_SetTimerConfig(flexio_base, child->res.timer_index[channel], &timerConfig); in pwm_nxp_flexio_set_cycles()
205 flexio_timer_config_t timerConfig; in mcux_flexio_pwm_init() local
235 (void)memset(&timerConfig, 0, sizeof(timerConfig)); in mcux_flexio_pwm_init()
236 FLEXIO_SetTimerConfig(flexio_base, child->res.timer_index[ch_id], &timerConfig); in mcux_flexio_pwm_init()
244 timerConfig.timerOutput = kFLEXIO_TimerOutputOneNotAffectedByReset; in mcux_flexio_pwm_init()
246 timerConfig.timerMode = kFLEXIO_TimerModeDual8BitPWM; in mcux_flexio_pwm_init()
249 timerConfig.timerDecrement = pwm_info->prescaler; in mcux_flexio_pwm_init()
252 timerConfig.timerCompare = 0; in mcux_flexio_pwm_init()
255 timerConfig.timerStop = kFLEXIO_TimerStopBitDisabled; in mcux_flexio_pwm_init()
256 timerConfig.timerEnable = kFLEXIO_TimerEnabledAlways; in mcux_flexio_pwm_init()
257 timerConfig.timerDisable = kFLEXIO_TimerDisableNever; in mcux_flexio_pwm_init()
258 timerConfig.timerStart = kFLEXIO_TimerStartBitDisabled; in mcux_flexio_pwm_init()
259 timerConfig.timerReset = kFLEXIO_TimerResetNever; in mcux_flexio_pwm_init()
260 timerConfig.triggerSource = kFLEXIO_TimerTriggerSourceInternal; in mcux_flexio_pwm_init()
263 timerConfig.pinConfig = FLEXIO_PWM_TIMER_PIN_OUTPUT_ENABLE; in mcux_flexio_pwm_init()
264 timerConfig.pinPolarity = kFLEXIO_PinActiveHigh; in mcux_flexio_pwm_init()
267 timerConfig.pinSelect = pwm_info->pin_id; in mcux_flexio_pwm_init()
269 FLEXIO_SetTimerConfig(flexio_base, child->res.timer_index[ch_id], &timerConfig); in mcux_flexio_pwm_init()