Home
last modified time | relevance | path

Searched refs:TIMER_GROUP_0 (Results 1 – 19 of 19) sorted by relevance

/hal_espressif-3.5.0/components/driver/test/
Dtest_timer.c40 TIMER_INFO_INIT(TIMER_GROUP_0, TIMER_0),
41 TIMER_INFO_INIT(TIMER_GROUP_0, TIMER_1),
45 TIMER_INFO_INIT(TIMER_GROUP_0, TIMER_0),
338 TEST_ESP_OK(timer_init(TIMER_GROUP_0, TIMER_0, &config));
339 TEST_ESP_OK(timer_get_config(TIMER_GROUP_0, TIMER_0, &get_config));
456 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, timer_pause(TIMER_GROUP_0, -1));
494 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, timer_set_counter_mode(TIMER_GROUP_0, TIMER_0, -1));
495 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, timer_set_counter_mode(TIMER_GROUP_0, TIMER_0, 2));
582 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, timer_set_divider(TIMER_GROUP_0, TIMER_0, 1));
586 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, timer_set_divider(TIMER_GROUP_0, TIMER_0, 65537));
[all …]
/hal_espressif-3.5.0/examples/system/eventfd/main/
Deventfd_example.c45 uint32_t timer_intr = timer_group_get_intr_status_in_isr(TIMER_GROUP_0); in eventfd_timer_isr_callback()
46 uint64_t timer_counter_value = timer_group_get_counter_value_in_isr(TIMER_GROUP_0, timer_idx); in eventfd_timer_isr_callback()
49 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in eventfd_timer_isr_callback()
51 timer_group_set_alarm_value_in_isr(TIMER_GROUP_0, timer_idx, timer_counter_value); in eventfd_timer_isr_callback()
54 timer_group_enable_alarm_in_isr(TIMER_GROUP_0, timer_idx); in eventfd_timer_isr_callback()
72 ESP_ERROR_CHECK(timer_init(TIMER_GROUP_0, timer_idx, &config)); in eventfd_timer_init()
74 ESP_ERROR_CHECK(timer_set_counter_value(TIMER_GROUP_0, timer_idx, 0x00000000ULL)); in eventfd_timer_init()
76 …ESP_ERROR_CHECK(timer_set_alarm_value(TIMER_GROUP_0, timer_idx, timer_interval_sec * TIMER_SCALE)); in eventfd_timer_init()
77 ESP_ERROR_CHECK(timer_enable_intr(TIMER_GROUP_0, timer_idx)); in eventfd_timer_init()
78 …ESP_ERROR_CHECK(timer_isr_callback_add(TIMER_GROUP_0, timer_idx, &eventfd_timer_isr_callback, (voi… in eventfd_timer_init()
[all …]
/hal_espressif-3.5.0/components/freertos/test/
Dtest_suspend_scheduler.c30 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in timer_group0_isr()
31 timer_group_enable_alarm_in_isr(TIMER_GROUP_0, TIMER_0); in timer_group0_isr()
85 timer_init(TIMER_GROUP_0, TIMER_0, &timer_config);
86 timer_pause(TIMER_GROUP_0, TIMER_0);
87 timer_set_counter_value(TIMER_GROUP_0, TIMER_0, 0);
88 timer_set_alarm_value(TIMER_GROUP_0, TIMER_0, 1000);
89 timer_enable_intr(TIMER_GROUP_0, TIMER_0);
90 timer_isr_register(TIMER_GROUP_0, TIMER_0, timer_group0_isr, NULL, 0, &isr_handle);
91 timer_start(TIMER_GROUP_0, TIMER_0);
112 timer_disable_intr(TIMER_GROUP_0, TIMER_0);
[all …]
Dtest_freertos_eventgroups.c147 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in event_group_isr()
148 timer_group_enable_alarm_in_isr(TIMER_GROUP_0, xPortGetCoreID()); in event_group_isr()
152 timer_pause(TIMER_GROUP_0, TIMER_NUMBER); in event_group_isr()
157 timer_pause(TIMER_GROUP_0, TIMER_NUMBER); in event_group_isr()
169 int timer_group = TIMER_GROUP_0; in setup_timer()
189 timer_disable_intr(TIMER_GROUP_0, TIMER_NUMBER); in cleanup_timer()
203 timer_start(TIMER_GROUP_0, TIMER_NUMBER);
209 timer_start(TIMER_GROUP_0, TIMER_NUMBER);
Dtest_task_suspend_resume.c128 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in timer_group0_isr()
146 timer_get_counter_value(TIMER_GROUP_0, TIMER_0, vp_resumed); in task_suspend_self_with_timer()
182 ESP_ERROR_CHECK( timer_init(TIMER_GROUP_0, TIMER_0, &config) ); in test_resume_task_from_isr()
183 ESP_ERROR_CHECK( timer_pause(TIMER_GROUP_0, TIMER_0) ); in test_resume_task_from_isr()
184 ESP_ERROR_CHECK( timer_set_counter_value(TIMER_GROUP_0, TIMER_0, 0) ); in test_resume_task_from_isr()
185 ESP_ERROR_CHECK( timer_set_alarm_value(TIMER_GROUP_0, TIMER_0, TEST_TIMER_ALARM) ); in test_resume_task_from_isr()
186 ESP_ERROR_CHECK( timer_enable_intr(TIMER_GROUP_0, TIMER_0) ); in test_resume_task_from_isr()
187 …ESP_ERROR_CHECK( timer_isr_register(TIMER_GROUP_0, TIMER_0, timer_group0_isr, (void*)suspend_task,… in test_resume_task_from_isr()
191 ESP_ERROR_CHECK( timer_start(TIMER_GROUP_0, TIMER_0) ); in test_resume_task_from_isr()
202 timer_deinit(TIMER_GROUP_0, TIMER_0); in test_resume_task_from_isr()
Dtest_freertos_task_notify.c60 timer_start(TIMER_GROUP_0, curcore); in sender_task()
65 timer_start(TIMER_GROUP_0, curcore); in sender_task()
108 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, curcore); in sender_ISR()
109 timer_group_set_counter_enable_in_isr(TIMER_GROUP_0, curcore, TIMER_PAUSE); in sender_ISR()
111 timer_group_enable_alarm_in_isr(TIMER_GROUP_0, curcore); in sender_ISR()
127 int timer_group = TIMER_GROUP_0; in timerg0_init()
156 int timer_group = TIMER_GROUP_0; in timerg0_deinit()
/hal_espressif-3.5.0/examples/peripherals/wave_gen/main/
Dwave_gen_example_main.c52 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in timer0_ISR()
53 timer_group_enable_alarm_in_isr(TIMER_GROUP_0, TIMER_0); in timer0_ISR()
76 ret = timer_init(TIMER_GROUP_0, timer_idx, &config); in example_timer_init()
78 ret = timer_set_counter_value(TIMER_GROUP_0, timer_idx, 0x00000000ULL); in example_timer_init()
80 ret = timer_set_alarm_value(TIMER_GROUP_0, timer_idx, ALARM_VAL_US); in example_timer_init()
82 ret = timer_enable_intr(TIMER_GROUP_0, TIMER_0); in example_timer_init()
85 timer_isr_register(TIMER_GROUP_0, timer_idx, timer0_ISR, (void *)raw_val, 0, NULL); in example_timer_init()
90 timer_pause(TIMER_GROUP_0, TIMER_0); in prepare_data()
103 timer_start(TIMER_GROUP_0, TIMER_0); in prepare_data()
/hal_espressif-3.5.0/components/spi_flash/test/
Dtest_spi_flash.c147 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in timer_isr()
148 timer_group_enable_alarm_in_isr(TIMER_GROUP_0, TIMER_0); in timer_isr()
188 ESP_ERROR_CHECK( timer_init(TIMER_GROUP_0, TIMER_0, &config) );
189 timer_pause(TIMER_GROUP_0, TIMER_0);
190 ESP_ERROR_CHECK( timer_set_alarm_value(TIMER_GROUP_0, TIMER_0, 120) );
192 …ESP_ERROR_CHECK( timer_isr_register(TIMER_GROUP_0, TIMER_0, &timer_isr, &block_arg, ESP_INTR_FLAG_…
193 timer_set_counter_value(TIMER_GROUP_0, TIMER_0, 0);
194 timer_enable_intr(TIMER_GROUP_0, TIMER_0);
195 timer_start(TIMER_GROUP_0, TIMER_0);
200 timer_pause(TIMER_GROUP_0, TIMER_0);
[all …]
/hal_espressif-3.5.0/components/vfs/test/
Dtest_vfs_eventfd.c224 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in eventfd_select_test_isr()
244 TEST_ESP_OK(timer_init(TIMER_GROUP_0, TIMER_0, &timer_config));
246 TEST_ESP_OK(timer_set_counter_value(TIMER_GROUP_0, TIMER_0, 0x00000000ULL));
248 TEST_ESP_OK(timer_set_alarm_value(TIMER_GROUP_0, TIMER_0, TIMER_BASE_CLK / 16));
249 TEST_ESP_OK(timer_enable_intr(TIMER_GROUP_0, TIMER_0));
250 TEST_ESP_OK(timer_isr_register(TIMER_GROUP_0, TIMER_0, eventfd_select_test_isr,
252 TEST_ESP_OK(timer_start(TIMER_GROUP_0, TIMER_0));
267 timer_deinit(TIMER_GROUP_0, TIMER_0);
/hal_espressif-3.5.0/components/esp_pm/test/
Dtest_pm.c140 timer_init(TIMER_GROUP_0, TIMER_0, &config);
141 timer_set_counter_value(TIMER_GROUP_0, TIMER_0, 0);
142 timer_start(TIMER_GROUP_0, TIMER_0);
155 timer_get_counter_value(TIMER_GROUP_0, TIMER_0, &count_start);
158 timer_get_counter_value(TIMER_GROUP_0, TIMER_0, &count_end);
/hal_espressif-3.5.0/examples/system/sysview_tracing/main/
Dsysview_tracing.c168 .group = TIMER_GROUP_0, in app_main()
192 example_timer_init(TIMER_GROUP_0, TIMER_0, 4000); in app_main()
/hal_espressif-3.5.0/components/hal/include/hal/
Dtimer_types.h31 TIMER_GROUP_0 = 0, /*!<Hw timer group 0*/ enumerator
/hal_espressif-3.5.0/components/esp_event/test/
Dtest_event.c1981 timer_group_get_counter_value_in_isr(TIMER_GROUP_0, TIMER_0); in test_event_on_timer_alarm()
1982 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in test_event_on_timer_alarm()
1984 timer_group_set_alarm_value_in_isr(TIMER_GROUP_0, TIMER_0, timer_counter_value); in test_event_on_timer_alarm()
2010 timer_init(TIMER_GROUP_0, TIMER_0, &config);
2014 timer_set_counter_value(TIMER_GROUP_0, TIMER_0, 0x00000000ULL);
2017 timer_set_alarm_value(TIMER_GROUP_0, TIMER_0, TIMER_INTERVAL0_SEC * TIMER_SCALE);
2018 timer_enable_intr(TIMER_GROUP_0, TIMER_0);
2019 timer_isr_register(TIMER_GROUP_0, TIMER_0, test_event_on_timer_alarm,
2022 timer_start(TIMER_GROUP_0, TIMER_0);
/hal_espressif-3.5.0/examples/peripherals/mcpwm/mcpwm_brushed_dc_control/components/motor_ctrl_timer/
Dmotor_ctrl_timer.c17 #define MOTOR_CONTROL_TIMER_GROUP TIMER_GROUP_0
/hal_espressif-3.5.0/examples/peripherals/timer_group/main/
Dtimer_group_example_main.c116 example_tg_timer_init(TIMER_GROUP_0, TIMER_0, true, 3); in app_main()
/hal_espressif-3.5.0/components/app_trace/test/
Dtest_trace.c497 s_test_timers[0].group = TIMER_GROUP_0;
551 s_test_timers[0].group = TIMER_GROUP_0;
615 s_test_timers[0].group = TIMER_GROUP_0;
/hal_espressif-3.5.0/components/esp_ringbuf/test/
Dtest_ringbuf.c717 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in ringbuffer_isr()
718 timer_group_enable_alarm_in_isr(TIMER_GROUP_0, xPortGetCoreID()); in ringbuffer_isr()
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_led.c287 if (HW_TIMER_GROUP == TIMER_GROUP_0) { in fade_timercb()
Diot_light.c170 if (HW_TIMER_GROUP == TIMER_GROUP_0) { in breath_timer_callback()