Home
last modified time | relevance | path

Searched refs:timer_id (Results 1 – 8 of 8) sorted by relevance

/hal_espressif-3.5.0/components/hal/esp32s3/include/hal/
Dmcpwm_ll.h183 static inline void mcpwm_ll_intr_enable_timer_stop(mcpwm_dev_t *mcpwm, uint32_t timer_id, bool enab… in mcpwm_ll_intr_enable_timer_stop() argument
186 mcpwm->int_ena.val |= 1 << (timer_id + 0); in mcpwm_ll_intr_enable_timer_stop()
188 mcpwm->int_ena.val &= ~(1 << (timer_id + 0)); in mcpwm_ll_intr_enable_timer_stop()
192 static inline void mcpwm_ll_intr_enable_timer_tez(mcpwm_dev_t *mcpwm, uint32_t timer_id, bool enabl… in mcpwm_ll_intr_enable_timer_tez() argument
195 mcpwm->int_ena.val |= 1 << (timer_id + 3); in mcpwm_ll_intr_enable_timer_tez()
197 mcpwm->int_ena.val &= ~(1 << (timer_id + 3)); in mcpwm_ll_intr_enable_timer_tez()
201 static inline void mcpwm_ll_intr_enable_timer_tep(mcpwm_dev_t *mcpwm, uint32_t timer_id, bool enabl… in mcpwm_ll_intr_enable_timer_tep() argument
204 mcpwm->int_ena.val |= 1 << (timer_id + 6); in mcpwm_ll_intr_enable_timer_tep()
206 mcpwm->int_ena.val &= ~(1 << (timer_id + 6)); in mcpwm_ll_intr_enable_timer_tep()
266 static inline void mcpwm_ll_timer_set_clock_prescale(mcpwm_dev_t *mcpwm, int timer_id, uint32_t pre… in mcpwm_ll_timer_set_clock_prescale() argument
[all …]
/hal_espressif-3.5.0/components/hal/esp32/include/hal/
Dmcpwm_ll.h182 static inline void mcpwm_ll_intr_enable_timer_stop(mcpwm_dev_t *mcpwm, uint32_t timer_id, bool enab… in mcpwm_ll_intr_enable_timer_stop() argument
185 mcpwm->int_ena.val |= 1 << (timer_id + 0); in mcpwm_ll_intr_enable_timer_stop()
187 mcpwm->int_ena.val &= ~(1 << (timer_id + 0)); in mcpwm_ll_intr_enable_timer_stop()
191 static inline void mcpwm_ll_intr_enable_timer_tez(mcpwm_dev_t *mcpwm, uint32_t timer_id, bool enabl… in mcpwm_ll_intr_enable_timer_tez() argument
194 mcpwm->int_ena.val |= 1 << (timer_id + 3); in mcpwm_ll_intr_enable_timer_tez()
196 mcpwm->int_ena.val &= ~(1 << (timer_id + 3)); in mcpwm_ll_intr_enable_timer_tez()
200 static inline void mcpwm_ll_intr_enable_timer_tep(mcpwm_dev_t *mcpwm, uint32_t timer_id, bool enabl… in mcpwm_ll_intr_enable_timer_tep() argument
203 mcpwm->int_ena.val |= 1 << (timer_id + 6); in mcpwm_ll_intr_enable_timer_tep()
205 mcpwm->int_ena.val &= ~(1 << (timer_id + 6)); in mcpwm_ll_intr_enable_timer_tep()
265 static inline void mcpwm_ll_timer_set_clock_prescale(mcpwm_dev_t *mcpwm, int timer_id, uint32_t pre… in mcpwm_ll_timer_set_clock_prescale() argument
[all …]
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_led.c48 timer_idx_t timer_id; member
55 hw_timer_idx_t timer_id; member
70 static void iot_timer_create(hw_timer_idx_t *timer_id, bool auto_reload, in iot_timer_create() argument
81 timer_init(timer_id->timer_group, timer_id->timer_id, &config); in iot_timer_create()
85 timer_set_counter_value(timer_id->timer_group, timer_id->timer_id, 0x00000000ULL); in iot_timer_create()
88 …timer_set_alarm_value(timer_id->timer_group, timer_id->timer_id, timer_interval_ms * HW_TIMER_SCAL… in iot_timer_create()
89 timer_enable_intr(timer_id->timer_group, timer_id->timer_id); in iot_timer_create()
90 timer_isr_register(timer_id->timer_group, timer_id->timer_id, isr_handle, in iot_timer_create()
91 (void *) timer_id->timer_id, ESP_INTR_FLAG_IRAM, NULL); in iot_timer_create()
94 static void iot_timer_start(hw_timer_idx_t *timer_id) in iot_timer_start() argument
[all …]
Diot_light.c50 timer_idx_t timer_id; member
83 static void iot_timer_create(hw_timer_idx_t *timer_id, bool auto_reload, double timer_interval_sec,… in iot_timer_create() argument
93 timer_init(timer_id->timer_group, timer_id->timer_id, &config); in iot_timer_create()
97 timer_set_counter_value(timer_id->timer_group, timer_id->timer_id, 0x00000000ULL); in iot_timer_create()
100 …timer_set_alarm_value(timer_id->timer_group, timer_id->timer_id, timer_interval_sec * HW_TIMER_SCA… in iot_timer_create()
101 timer_enable_intr(timer_id->timer_group, timer_id->timer_id); in iot_timer_create()
102 timer_isr_register(timer_id->timer_group, timer_id->timer_id, (void *)isr_handle, in iot_timer_create()
103 (void *) timer_id->timer_id, ESP_INTR_FLAG_IRAM, NULL); in iot_timer_create()
106 static void iot_timer_start(hw_timer_idx_t *timer_id) in iot_timer_start() argument
108 timer_start(timer_id->timer_group, timer_id->timer_id); in iot_timer_start()
[all …]
/hal_espressif-3.5.0/components/bt/common/osi/
Dalarm.c159 struct alarm_t *timer_id = NULL; in osi_alarm_new() local
164 timer_id = NULL; in osi_alarm_new()
168 timer_id = alarm_cbs_lookfor_available(); in osi_alarm_new()
170 if (!timer_id) { in osi_alarm_new()
172 timer_id = NULL; in osi_alarm_new()
178 tca.arg = timer_id; in osi_alarm_new()
182 timer_id->cb = callback; in osi_alarm_new()
183 timer_id->cb_data = data; in osi_alarm_new()
184 timer_id->deadline_us = 0; in osi_alarm_new()
186 esp_err_t stat = esp_timer_create(&tca, &timer_id->alarm_hdl); in osi_alarm_new()
[all …]
/hal_espressif-3.5.0/components/esp_hw_support/test/
Dtest_intr_alloc.c57 int timer_id = timer_idx % SOC_TIMER_GROUP_TIMERS_PER_GROUP; in timer_isr() local
60 timer_group_clr_intr_status_in_isr(group_id, timer_id); in timer_isr()
61 timer_group_enable_alarm_in_isr(group_id, timer_id); in timer_isr()
/hal_espressif-3.5.0/examples/network/simple_sniffer/main/
Dcmd_pcap.c176 int timer_id = 0xFEED; in sniff_packet_start() local
179 pdTRUE, (void *) timer_id, in sniff_packet_start()
/hal_espressif-3.5.0/components/esp_timer/test/
Dtest_esp_timer.c101 int timer_id; variable
102 sscanf(line, "timer%d", &timer_id);
103 TEST_ASSERT_EQUAL(indices[timer_id], i);