Searched refs:hal_ctx (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/counter/ |
D | counter_esp32_tmr.c | 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() [all …]
|