Arduino A2DP
config.h
1 #pragma once
2 
3 #define DEPRECATED __attribute__((deprecated))
4 
5 
6 #if __has_include("esp_arduino_version.h")
7 #include "esp_arduino_version.h"
8 #endif
9 
10 // Enable CURRENT_ESP_IDF if we are using a current version of ESP IDF e.g. 4.3
11 // ESP Arduino 2.0 is using ESP IDF 4.4
12 #if ESP_IDF_VERSION_MAJOR >= 4 || ESP_ARDUINO_VERSION_MAJOR >= 2
13 #define CURRENT_ESP_IDF
14 #endif
15 
16 // Compile ESP32C3
17 #if __has_include("sdkconfig.h")
18 #include "sdkconfig.h"
19 #ifdef CONFIG_IDF_TARGET_ESP32C3
20 #define ESP32C3
21 #endif
22 #endif