From a692b72347b3ddf4ce225b0afc249c1b5a445063 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 30 Nov 2024 21:53:48 +0100 Subject: [PATCH] Move ESP-IDF HAL back to examples (#1322) --- {src/hal/ESP-IDF => examples/NonArduino/ESP-IDF/main}/EspHal.h | 2 +- examples/NonArduino/ESP-IDF/main/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {src/hal/ESP-IDF => examples/NonArduino/ESP-IDF/main}/EspHal.h (98%) diff --git a/src/hal/ESP-IDF/EspHal.h b/examples/NonArduino/ESP-IDF/main/EspHal.h similarity index 98% rename from src/hal/ESP-IDF/EspHal.h rename to examples/NonArduino/ESP-IDF/main/EspHal.h index 340adbd6..3f7cd125 100644 --- a/src/hal/ESP-IDF/EspHal.h +++ b/examples/NonArduino/ESP-IDF/main/EspHal.h @@ -7,7 +7,7 @@ // this example only works on ESP32 and is unlikely to work on ESP32S2/S3 etc. // if you need high portability, you should probably use Arduino anyway ... #if CONFIG_IDF_TARGET_ESP32 == 0 - #error Target is not ESP32! + #error This example HAL only supports ESP32 targets. Support for ESP32S2/S3 etc. can be added by adjusting this file to user needs. #endif // include all the dependencies diff --git a/examples/NonArduino/ESP-IDF/main/main.cpp b/examples/NonArduino/ESP-IDF/main/main.cpp index 45e6f75d..9a2272b6 100644 --- a/examples/NonArduino/ESP-IDF/main/main.cpp +++ b/examples/NonArduino/ESP-IDF/main/main.cpp @@ -17,7 +17,7 @@ #include // include the hardware abstraction layer -#include "hal/ESP-IDF/EspHal.h" +#include "EspHal.h" // create a new instance of the HAL class EspHal* hal = new EspHal(5, 19, 27);