Home
last modified time | relevance | path

Searched refs:TIMER_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),
42 TIMER_INFO_INIT(TIMER_GROUP_1, TIMER_0),
45 TIMER_INFO_INIT(TIMER_GROUP_0, TIMER_0),
46 TIMER_INFO_INIT(TIMER_GROUP_1, TIMER_0),
322 TEST_ESP_OK(timer_get_config(TIMER_GROUP_1, TIMER_0, &get_config));
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));
354 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, timer_init(-1, TIMER_0, &config));
357 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, timer_init(2, TIMER_0, &config));
424 TEST_ASSERT_EQUAL(ESP_ERR_INVALID_ARG, timer_start(2, TIMER_0));
[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_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_eventgroups.c147 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in event_group_isr()
/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()
82 ret = timer_enable_intr(TIMER_GROUP_0, TIMER_0); 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()
131 example_timer_init(TIMER_0, WITH_RELOAD); in app_main()
/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/examples/system/sysview_tracing/main/
Dsysview_tracing.c164 .timer = TIMER_0, in app_main()
169 .timer = TIMER_0, in app_main()
186 example_timer_init(TIMER_GROUP_1, TIMER_0, 2000); in app_main()
192 example_timer_init(TIMER_GROUP_0, TIMER_0, 4000); in app_main()
/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/eventfd/main/
Deventfd_example.c49 timer_group_clr_intr_status_in_isr(TIMER_GROUP_0, TIMER_0); in eventfd_timer_isr_callback()
166 timer_deinit(TIMER_GROUP_0, TIMER_0); in collector_task()
175 eventfd_timer_init(TIMER_0, TIMER_INTERVAL_SEC); in app_main()
/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()
117 example_tg_timer_init(TIMER_GROUP_1, TIMER_0, false, 5); in app_main()
/hal_espressif-3.5.0/components/app_trace/test/
Dtest_trace.c498 s_test_timers[0].id = TIMER_0;
552 s_test_timers[0].id = TIMER_0;
559 s_test_timers[1].id = TIMER_0;
616 s_test_timers[0].id = TIMER_0;
889 .timer = TIMER_0,
903 esp_apptrace_test_timer_init(TIMER_GROUP_1, TIMER_0, 100);
940 .timer = TIMER_0,
973 esp_apptrace_test_timer_init(TIMER_GROUP_1, TIMER_0, 100);
/hal_espressif-3.5.0/components/hal/include/hal/
Dtimer_types.h42 TIMER_0 = 0, /*!<Select timer0 of GROUPx*/ 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.c18 #define MOTOR_CONTROL_TIMER_ID TIMER_0
/hal_espressif-3.5.0/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Diot_led.c298 if ((intr_status & BIT(timer_idx)) && timer_idx == TIMER_0) { in fade_timercb()
320 if ((intr_status & BIT(timer_idx)) && timer_idx == TIMER_0) { in fade_timercb()
Diot_light.c176 if ((intr_status & BIT(timer_idx)) && timer_idx == TIMER_0) { in breath_timer_callback()
189 if ((intr_status & BIT(timer_idx)) && timer_idx == TIMER_0) { in breath_timer_callback()
/hal_espressif-3.5.0/components/driver/
Dtimer.c411 if (p_timer_obj[group_num][TIMER_0] != NULL) { in timer_group_get_intr_status_in_isr()
412 timer_hal_get_intr_status(&(p_timer_obj[group_num][TIMER_0]->hal), &intr_status); in timer_group_get_intr_status_in_isr()
/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()