Lines Matching refs:hal_ctx

60 	timer_hal_context_t hal_ctx;  member
78 timer_hal_init(&data->hal_ctx, cfg->group, cfg->index); in counter_esp32_init()
80 timer_ll_enable_intr(data->hal_ctx.dev, TIMER_LL_EVENT_ALARM(data->hal_ctx.timer_id), in counter_esp32_init()
82 timer_ll_clear_intr_status(data->hal_ctx.dev, TIMER_LL_EVENT_ALARM(data->hal_ctx.timer_id)); in counter_esp32_init()
83 timer_ll_enable_auto_reload(data->hal_ctx.dev, data->hal_ctx.timer_id, in counter_esp32_init()
85 timer_ll_set_clock_source(data->hal_ctx.dev, data->hal_ctx.timer_id, in counter_esp32_init()
87 timer_ll_set_clock_prescale(data->hal_ctx.dev, data->hal_ctx.timer_id, cfg->config.divider); in counter_esp32_init()
88 timer_ll_set_count_direction(data->hal_ctx.dev, data->hal_ctx.timer_id, in counter_esp32_init()
90 timer_ll_enable_alarm(data->hal_ctx.dev, data->hal_ctx.timer_id, cfg->config.alarm_en); in counter_esp32_init()
91 timer_ll_set_reload_value(data->hal_ctx.dev, data->hal_ctx.timer_id, 0); in counter_esp32_init()
92 timer_ll_enable_counter(data->hal_ctx.dev, data->hal_ctx.timer_id, cfg->config.counter_en); in counter_esp32_init()
113 timer_ll_enable_counter(data->hal_ctx.dev, data->hal_ctx.timer_id, TIMER_START); in counter_esp32_start()
122 timer_ll_enable_counter(data->hal_ctx.dev, data->hal_ctx.timer_id, TIMER_PAUSE); in counter_esp32_stop()
131 timer_ll_trigger_soft_capture(data->hal_ctx.dev, data->hal_ctx.timer_id); in counter_esp32_get_value()
132 *ticks = (uint32_t)timer_ll_get_counter_value(data->hal_ctx.dev, data->hal_ctx.timer_id); in counter_esp32_get_value()
141 timer_ll_trigger_soft_capture(data->hal_ctx.dev, data->hal_ctx.timer_id); in counter_esp32_get_value_64()
142 *ticks = timer_ll_get_counter_value(data->hal_ctx.dev, data->hal_ctx.timer_id); in counter_esp32_get_value_64()
157 timer_ll_set_alarm_value(data->hal_ctx.dev, data->hal_ctx.timer_id, in counter_esp32_set_alarm()
160 timer_ll_set_alarm_value(data->hal_ctx.dev, data->hal_ctx.timer_id, in counter_esp32_set_alarm()
164 timer_ll_enable_intr(data->hal_ctx.dev, TIMER_LL_EVENT_ALARM(data->hal_ctx.timer_id), true); in counter_esp32_set_alarm()
165 timer_ll_enable_alarm(data->hal_ctx.dev, data->hal_ctx.timer_id, TIMER_ALARM_EN); in counter_esp32_set_alarm()
177 timer_ll_enable_intr(data->hal_ctx.dev, TIMER_LL_EVENT_ALARM(data->hal_ctx.timer_id), in counter_esp32_cancel_alarm()
179 timer_ll_enable_alarm(data->hal_ctx.dev, data->hal_ctx.timer_id, TIMER_ALARM_DIS); in counter_esp32_cancel_alarm()
199 return timer_ll_get_intr_status(data->hal_ctx.dev); in counter_esp32_get_pending_int()
243 timer_ll_clear_intr_status(data->hal_ctx.dev, TIMER_LL_EVENT_ALARM(data->hal_ctx.timer_id)); in counter_esp32_isr()