Lines Matching refs:hal

38 	mcpwm_hal_context_t hal;  member
110 set_duty = mcpwm_ll_timer_get_peak(data->hal.dev, channel->timer_id, false) * in mcpwm_esp32_duty_set()
112 mcpwm_ll_operator_select_timer(data->hal.dev, channel->operator_id, channel->timer_id); in mcpwm_esp32_duty_set()
113 mcpwm_ll_operator_set_compare_value(data->hal.dev, channel->operator_id, in mcpwm_esp32_duty_set()
115 mcpwm_ll_operator_enable_update_compare_on_tez(data->hal.dev, channel->operator_id, in mcpwm_esp32_duty_set()
120 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
123 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
126 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
130 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
133 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
136 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
140 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
143 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
146 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
150 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
153 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
156 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
181 mcpwm_ll_timer_set_clock_prescale(data->hal.dev, channel->timer_id, channel->prescale); in mcpwm_esp32_timer_set()
182 mcpwm_ll_timer_set_count_mode(data->hal.dev, channel->timer_id, MCPWM_TIMER_COUNT_MODE_UP); in mcpwm_esp32_timer_set()
183 mcpwm_ll_timer_update_period_at_once(data->hal.dev, channel->timer_id); in mcpwm_esp32_timer_set()
184 int real_group_prescale = mcpwm_ll_group_get_clock_prescale(data->hal.dev); in mcpwm_esp32_timer_set()
187 mcpwm_ll_timer_get_clock_prescale(data->hal.dev, channel->timer_id); in mcpwm_esp32_timer_set()
188 mcpwm_ll_timer_set_peak(data->hal.dev, channel->timer_id, real_timer_clk_hz / channel->freq, in mcpwm_esp32_timer_set()
262 mcpwm_ll_timer_set_execute_command(data->hal.dev, channel->timer_id, in mcpwm_esp32_set_cycles()
290 if (data->hal.dev->cap_chn_cfg[capture->capture_signal].capn_en) { in mcpwm_esp32_configure_capture()
328 mcpwm_ll_capture_enable_channel(data->hal.dev, capture->capture_signal, false); in mcpwm_esp32_disable_capture()
329 mcpwm_ll_intr_enable_capture(data->hal.dev, capture->capture_signal, false); in mcpwm_esp32_disable_capture()
356 if (data->hal.dev->cap_chn_cfg[capture->capture_signal].capn_en) { in mcpwm_esp32_enable_capture()
370 mcpwm_hal_init(&data->hal, &data->init_config); in mcpwm_esp32_enable_capture()
371 mcpwm_ll_group_set_clock_prescale(data->hal.dev, config->prescale); in mcpwm_esp32_enable_capture()
372 mcpwm_ll_group_enable_shadow_mode(data->hal.dev); in mcpwm_esp32_enable_capture()
373 mcpwm_ll_group_flush_shadow(data->hal.dev); in mcpwm_esp32_enable_capture()
375 mcpwm_ll_capture_enable_timer(data->hal.dev, true); in mcpwm_esp32_enable_capture()
376 mcpwm_ll_capture_enable_channel(data->hal.dev, capture->capture_signal, true); in mcpwm_esp32_enable_capture()
377 mcpwm_ll_capture_enable_negedge(data->hal.dev, capture->capture_signal, in mcpwm_esp32_enable_capture()
379 mcpwm_ll_capture_enable_posedge(data->hal.dev, capture->capture_signal, in mcpwm_esp32_enable_capture()
381 mcpwm_ll_capture_set_prescale(data->hal.dev, capture->capture_signal, in mcpwm_esp32_enable_capture()
384 mcpwm_ll_intr_enable_capture(data->hal.dev, capture->capture_signal, true); in mcpwm_esp32_enable_capture()
385 mcpwm_ll_intr_clear_capture_status(data->hal.dev, 1 << capture->capture_signal); in mcpwm_esp32_enable_capture()
431 mcpwm_hal_init(&data->hal, &data->init_config); in mcpwm_esp32_init()
432 mcpwm_ll_group_set_clock_prescale(data->hal.dev, config->prescale); in mcpwm_esp32_init()
433 mcpwm_ll_group_enable_shadow_mode(data->hal.dev); in mcpwm_esp32_init()
434 mcpwm_ll_group_flush_shadow(data->hal.dev); in mcpwm_esp32_init()
452 mcpwm_intr_status = mcpwm_ll_intr_get_capture_status(data->hal.dev); in mcpwm_esp32_isr()
454 mcpwm_ll_intr_clear_capture_status(data->hal.dev, mcpwm_intr_status); in mcpwm_esp32_isr()
477 mcpwm_ll_capture_get_value(data->hal.dev, capture->capture_signal); in mcpwm_esp32_isr()
479 mcpwm_ll_capture_is_negedge(data->hal.dev, capture->capture_signal) in mcpwm_esp32_isr()
547 .hal = \