Lines Matching refs:config

46 	const struct pwm_mcux_config *config = dev->config;  in mcux_pwm_set_cycles_internal()  local
63 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_pwm_set_cycles_internal()
70 PWM_StopTimer(config->base, 1U << config->index); in mcux_pwm_set_cycles_internal()
82 status = PWM_SetupPwm(config->base, config->index, in mcux_pwm_set_cycles_internal()
84 config->mode, 1U, clock_freq); in mcux_pwm_set_cycles_internal()
93 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
96 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
99 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
101 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
106 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
109 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
112 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
114 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
119 PWM_SetPwmLdok(config->base, 1U << config->index, true); in mcux_pwm_set_cycles_internal()
121 PWM_StartTimer(config->base, 1U << config->index); in mcux_pwm_set_cycles_internal()
126 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
128 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
133 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
135 PWM_SetVALxValue(config->base, config->index, in mcux_pwm_set_cycles_internal()
139 PWM_SetPwmLdok(config->base, 1U << config->index, true); in mcux_pwm_set_cycles_internal()
178 const struct pwm_mcux_config *config = dev->config; in mcux_pwm_get_cycles_per_sec() local
181 if (clock_control_get_rate(config->clock_dev, config->clock_subsys, in mcux_pwm_get_cycles_per_sec()
185 *cycles = clock_freq >> config->prescale; in mcux_pwm_get_cycles_per_sec()
192 const struct pwm_mcux_config *config = dev->config; in pwm_mcux_init() local
200 if (!device_is_ready(config->clock_dev)) { in pwm_mcux_init()
205 err = pinctrl_apply_state(config->pincfg, PINCTRL_STATE_DEFAULT); in pwm_mcux_init()
211 1 << config->prescale, config->reload); in pwm_mcux_init()
214 pwm_config.prescale = config->prescale; in pwm_mcux_init()
215 pwm_config.reloadLogic = config->reload; in pwm_mcux_init()
217 pwm_config.enableDebugMode = config->run_debug; in pwm_mcux_init()
219 pwm_config.enableWait = config->run_wait; in pwm_mcux_init()
222 status = PWM_Init(config->base, config->index, &pwm_config); in pwm_mcux_init()
230 config->base->SM[config->index].DISMAP[i] = 0x0000; in pwm_mcux_init()