Add arduino-esp32 3.x compatibility.
This commit is contained in:
@ -22,10 +22,16 @@
|
||||
#define ENABLE_I2C_SUPPORT
|
||||
#define ENABLE_SOCKETS_SUPPORT
|
||||
#define ENABLE_FREERTOS_SUPPORT
|
||||
#define ENABLE_LEDC_SUPPORT
|
||||
#define ENABLE_SD_SUPPORT
|
||||
#define ENABLE_ESP32_FORTH_FAULT_HANDLING
|
||||
|
||||
// LEDC changed interface in v3.x+
|
||||
#if ESP_ARDUINO_VERSION_MAJOR >= 3
|
||||
# define ENABLE_LEDC_V3_SUPPORT
|
||||
#else
|
||||
# define ENABLE_LEDC_V2_SUPPORT
|
||||
#endif
|
||||
|
||||
// SD_MMC does not work on ESP32-S2 / ESP32-C3
|
||||
#if !defined(CONFIG_IDF_TARGET_ESP32S2) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
||||
# define ENABLE_SD_MMC_SUPPORT
|
||||
|
||||
Reference in New Issue
Block a user