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

Commit

Permalink
v1.3.0 to suppress errors and warnings
Browse files Browse the repository at this point in the history
### Releases v1.3.0

1. Suppress errors and warnings for new ESP32 core v2.0.4+
  • Loading branch information
khoih-prog authored Aug 4, 2022
1 parent cad234c commit 04fa0f1
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions src/ESP32_New_FastTimerInterrupt.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,27 +153,24 @@ typedef struct
*/

/*
//ESP32 core v2.0.4, timer_config_t defined in tools/sdk/esp32/include/hal/include/hal/timer_types.h:
#if SOC_TIMER_GROUP_SUPPORT_XTAL
typedef enum {
//ESP32 core v2.0.4, timer_config_t defined in tools/sdk/esp32/include/hal/include/hal/timer_types.h:
#if SOC_TIMER_GROUP_SUPPORT_XTAL
typedef enum {
TIMER_SRC_CLK_APB = 0, // Select APB as the source clock
TIMER_SRC_CLK_XTAL = 1, // Select XTAL as the source clock
} timer_src_clk_t;
#endif
typedef struct {
timer_alarm_t alarm_en; // Timer alarm enable
timer_start_t counter_en; // Counter enable
timer_intr_mode_t intr_type; // Interrupt mode
timer_count_dir_t counter_dir; // Counter direction
} timer_src_clk_t;
#endif
typedef struct {
timer_alarm_t alarm_en; // Timer alarm enable
timer_start_t counter_en; // Counter enable
timer_intr_mode_t intr_type; // Interrupt mode
timer_count_dir_t counter_dir; // Counter direction
timer_autoreload_t auto_reload; // Timer auto-reload
uint32_t divider; // Counter clock divider. The divider's range is from from 2 to 65536
#if SOC_TIMER_GROUP_SUPPORT_XTAL
timer_src_clk_t clk_src; // Use XTAL as source clock
#endif
} timer_config_t;
uint32_t divider; // Counter clock divider. The divider's range is from from 2 to 65536
#if SOC_TIMER_GROUP_SUPPORT_XTAL
timer_src_clk_t clk_src; // Use XTAL as source clock
#endif
} timer_config_t;
*/

Expand Down

0 comments on commit 04fa0f1

Please sign in to comment.