Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit 04fa0f1

Browse files
authored
v1.3.0 to suppress errors and warnings
### Releases v1.3.0 1. Suppress errors and warnings for new ESP32 core v2.0.4+
1 parent cad234c commit 04fa0f1

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

src/ESP32_New_FastTimerInterrupt.h

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -153,27 +153,24 @@ typedef struct
153153
*/
154154

155155
/*
156-
//ESP32 core v2.0.4, timer_config_t defined in tools/sdk/esp32/include/hal/include/hal/timer_types.h:
157-
158-
#if SOC_TIMER_GROUP_SUPPORT_XTAL
159-
160-
typedef enum {
156+
//ESP32 core v2.0.4, timer_config_t defined in tools/sdk/esp32/include/hal/include/hal/timer_types.h:
157+
#if SOC_TIMER_GROUP_SUPPORT_XTAL
158+
typedef enum {
161159
TIMER_SRC_CLK_APB = 0, // Select APB as the source clock
162160
TIMER_SRC_CLK_XTAL = 1, // Select XTAL as the source clock
163-
} timer_src_clk_t;
164-
#endif
165-
166-
typedef struct {
167-
timer_alarm_t alarm_en; // Timer alarm enable
168-
timer_start_t counter_en; // Counter enable
169-
timer_intr_mode_t intr_type; // Interrupt mode
170-
timer_count_dir_t counter_dir; // Counter direction
161+
} timer_src_clk_t;
162+
#endif
163+
typedef struct {
164+
timer_alarm_t alarm_en; // Timer alarm enable
165+
timer_start_t counter_en; // Counter enable
166+
timer_intr_mode_t intr_type; // Interrupt mode
167+
timer_count_dir_t counter_dir; // Counter direction
171168
timer_autoreload_t auto_reload; // Timer auto-reload
172-
uint32_t divider; // Counter clock divider. The divider's range is from from 2 to 65536
173-
#if SOC_TIMER_GROUP_SUPPORT_XTAL
174-
timer_src_clk_t clk_src; // Use XTAL as source clock
175-
#endif
176-
} timer_config_t;
169+
uint32_t divider; // Counter clock divider. The divider's range is from from 2 to 65536
170+
#if SOC_TIMER_GROUP_SUPPORT_XTAL
171+
timer_src_clk_t clk_src; // Use XTAL as source clock
172+
#endif
173+
} timer_config_t;
177174
178175
*/
179176

0 commit comments

Comments
 (0)