Add better ESP32 model exclusions

This commit is contained in:
Theo Arends 2022-02-20 14:42:51 +01:00
parent eb566c3b62
commit 2d9d8fa5c2

View File

@ -94,27 +94,43 @@ String EthernetMacAddress(void);
#ifdef ESP32 #ifdef ESP32
/*-------------------------------------------------------------------------------------------*\
* Start ESP32 specific parameters - disable features not present in ESP32
\*-------------------------------------------------------------------------------------------*/
#if CONFIG_IDF_TARGET_ESP32
#else // Disable features not present in other ESP32 like ESP32C3, ESP32S2, ESP32S3 etc.
#ifdef USE_ETHERNET
#undef USE_ETHERNET // All non-ESP32 do not support ethernet
#endif
#endif // CONFIG_IDF_TARGET_ESP32
/*-------------------------------------------------------------------------------------------*\
* End ESP32 specific parameters
\*-------------------------------------------------------------------------------------------*/
/*-------------------------------------------------------------------------------------------*\ /*-------------------------------------------------------------------------------------------*\
* Start ESP32-C32 specific parameters - disable features not present in ESP32-C3 * Start ESP32-C32 specific parameters - disable features not present in ESP32-C3
\*-------------------------------------------------------------------------------------------*/ \*-------------------------------------------------------------------------------------------*/
#if CONFIG_IDF_TARGET_ESP32C3 // ESP32-C3 #if CONFIG_IDF_TARGET_ESP32C3 // ESP32-C3
#ifdef USE_ETHERNET //#ifdef USE_ETHERNET
#undef USE_ETHERNET // ESP32-C3 does not support ethernet //#undef USE_ETHERNET // ESP32-C3 does not support ethernet
#endif //#endif
#endif // CONFIG_IDF_TARGET_ESP32C3 #endif // CONFIG_IDF_TARGET_ESP32C3
/*-------------------------------------------------------------------------------------------*\ /*-------------------------------------------------------------------------------------------*\
* End ESP32-S2 specific parameters * End ESP32-C3 specific parameters
\*-------------------------------------------------------------------------------------------*/ \*-------------------------------------------------------------------------------------------*/
/*-------------------------------------------------------------------------------------------*\ /*-------------------------------------------------------------------------------------------*\
* Start ESP32-S2 specific parameters - disable features not present in ESP32-S2 * Start ESP32-S2 specific parameters - disable features not present in ESP32-S2
\*-------------------------------------------------------------------------------------------*/ \*-------------------------------------------------------------------------------------------*/
#if CONFIG_IDF_TARGET_ESP32S2 // ESP32-S2 #if CONFIG_IDF_TARGET_ESP32S2 // ESP32-S2
#ifdef USE_ETHERNET //#ifdef USE_ETHERNET
#undef USE_ETHERNET // ESP32-S2 does not support ethernet //#undef USE_ETHERNET // ESP32-S2 does not support ethernet
#endif //#endif
#ifdef USE_BLE_ESP32 #ifdef USE_BLE_ESP32
#undef USE_BLE_ESP32 // ESP32-S2 does not support BLE #undef USE_BLE_ESP32 // ESP32-S2 does not support BLE
#endif #endif