Arduino A2DP
Loading...
Searching...
No Matches
config.h
1#pragma once
2
3#define A2DP_DEPRECATED __attribute__((deprecated))
4
5// Enable ESP_IDF_4 if we are using a current version of ESP IDF e.g. 4.3
6// ESP Arduino 2.0 is using ESP IDF 4.4
7#if __has_include("esp_arduino_version.h")
8#include "esp_arduino_version.h"
9# if ESP_ARDUINO_VERSION_MAJOR >= 2
10# define ESP_IDF_4
11# endif
12#endif
13
14#if __has_include("esp_idf_version.h")
15#include "esp_idf_version.h"
16# if ESP_IDF_VERSION_MAJOR >= 4
17# ifndef ESP_IDF_4
18# define ESP_IDF_4
19# endif
20# endif
21#endif
22
23#ifndef AUTOCONNECT_TRY_NUM
24# define AUTOCONNECT_TRY_NUM 1000
25#endif
26
27// If you use #include "I2S.h" the i2s functionality is hidden in a namespace
28// this hack prevents any error messages
29#ifdef _I2S_H_INCLUDED
30using namespace esp_i2s;
31#endif
32
33// Compile only for ESP32
34#if defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3)
35#error "ESP32C3, ESP32S2, ESP32S3 do not support A2DP"
36#endif