Lines Matching refs:hal

48 	mcpwm_hal_context_t hal;  member
123 mcpwm_ll_operator_connect_timer(data->hal.dev, channel->operator_id, channel->timer_id); in mcpwm_esp32_duty_set()
124 mcpwm_ll_operator_set_compare_value(data->hal.dev, channel->operator_id, in mcpwm_esp32_duty_set()
126 mcpwm_ll_operator_enable_update_compare_on_tez(data->hal.dev, channel->operator_id, in mcpwm_esp32_duty_set()
131 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
134 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
137 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
141 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
144 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
147 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
151 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
154 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
157 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
161 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
164 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
167 data->hal.dev, channel->operator_id, channel->generator_id, in mcpwm_esp32_duty_set()
193 mcpwm_ll_timer_set_clock_prescale(data->hal.dev, channel->timer_id, channel->prescale); in mcpwm_esp32_timer_set()
194 mcpwm_ll_timer_set_count_mode(data->hal.dev, channel->timer_id, MCPWM_TIMER_COUNT_MODE_UP); in mcpwm_esp32_timer_set()
195 mcpwm_ll_timer_update_period_at_once(data->hal.dev, channel->timer_id); in mcpwm_esp32_timer_set()
199 mcpwm_ll_timer_set_peak(data->hal.dev, channel->timer_id, timer_clk_hz / channel->freq, in mcpwm_esp32_timer_set()
279 mcpwm_ll_timer_set_start_stop_command(data->hal.dev, channel->timer_id, in mcpwm_esp32_set_cycles()
307 if (data->hal.dev->cap_chn_cfg[capture->capture_signal].capn_en) { in mcpwm_esp32_configure_capture()
345 mcpwm_ll_capture_enable_channel(data->hal.dev, capture->capture_signal, false); in mcpwm_esp32_disable_capture()
346 mcpwm_ll_intr_enable(data->hal.dev, MCPWM_LL_EVENT_CAPTURE(capture->capture_signal), false); in mcpwm_esp32_disable_capture()
373 if (data->hal.dev->cap_chn_cfg[capture->capture_signal].capn_en) { in mcpwm_esp32_enable_capture()
387 mcpwm_ll_group_set_clock_prescale(data->hal.dev, config->prescale); in mcpwm_esp32_enable_capture()
388 mcpwm_ll_group_enable_shadow_mode(data->hal.dev); in mcpwm_esp32_enable_capture()
389 mcpwm_ll_group_flush_shadow(data->hal.dev); in mcpwm_esp32_enable_capture()
391 mcpwm_ll_capture_enable_timer(data->hal.dev, true); in mcpwm_esp32_enable_capture()
392 mcpwm_ll_capture_enable_channel(data->hal.dev, capture->capture_signal, true); in mcpwm_esp32_enable_capture()
393 mcpwm_ll_capture_enable_negedge(data->hal.dev, capture->capture_signal, in mcpwm_esp32_enable_capture()
395 mcpwm_ll_capture_enable_posedge(data->hal.dev, capture->capture_signal, in mcpwm_esp32_enable_capture()
397 mcpwm_ll_capture_set_prescale(data->hal.dev, capture->capture_signal, in mcpwm_esp32_enable_capture()
400 mcpwm_ll_intr_enable(data->hal.dev, MCPWM_LL_EVENT_CAPTURE(capture->capture_signal), true); in mcpwm_esp32_enable_capture()
401 mcpwm_ll_intr_clear_status(data->hal.dev, MCPWM_LL_EVENT_CAPTURE(capture->capture_signal)); in mcpwm_esp32_enable_capture()
437 mcpwm_ll_group_set_clock_source(data->hal.dev, MCPWM_TIMER_CLK_SRC_DEFAULT); in mcpwm_esp32_init()
450 mcpwm_ll_group_set_clock_prescale(data->hal.dev, config->prescale); in mcpwm_esp32_init()
451 mcpwm_ll_group_enable_shadow_mode(data->hal.dev); in mcpwm_esp32_init()
452 mcpwm_ll_group_flush_shadow(data->hal.dev); in mcpwm_esp32_init()
474 mcpwm_intr_status = mcpwm_ll_intr_get_status(data->hal.dev); in mcpwm_esp32_isr()
483 mcpwm_ll_intr_clear_status(data->hal.dev, in mcpwm_esp32_isr()
494 mcpwm_ll_capture_get_value(data->hal.dev, capture->capture_signal); in mcpwm_esp32_isr()
496 mcpwm_ll_capture_get_edge(data->hal.dev, capture->capture_signal) == in mcpwm_esp32_isr()
570 .hal = \