diff --git a/cores/esp32/HardwareSerial.cpp b/cores/esp32/HardwareSerial.cpp index b123d8cb..b8ae042e 100644 --- a/cores/esp32/HardwareSerial.cpp +++ b/cores/esp32/HardwareSerial.cpp @@ -5,6 +5,7 @@ #include "pins_arduino.h" #include "HardwareSerial.h" +#include "esp32-hal-log.h" #if CONFIG_IDF_TARGET_ESP32 diff --git a/cores/esp32/esp32-hal-adc.c b/cores/esp32/esp32-hal-adc.c index 72e8ab00..2638d1e9 100644 --- a/cores/esp32/esp32-hal-adc.c +++ b/cores/esp32/esp32-hal-adc.c @@ -13,6 +13,7 @@ // limitations under the License. #include "esp32-hal-adc.h" +#include "esp32-hal-log.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_attr.h" diff --git a/cores/esp32/esp32-hal-cpu.c b/cores/esp32/esp32-hal-cpu.c index ac70c532..a5d33434 100644 --- a/cores/esp32/esp32-hal-cpu.c +++ b/cores/esp32/esp32-hal-cpu.c @@ -25,6 +25,7 @@ #include "soc/efuse_reg.h" #include "esp32-hal.h" #include "esp32-hal-cpu.h" +#include "esp32-hal-log.h" #include "esp_system.h" #ifdef ESP_IDF_VERSION_MAJOR // IDF 4+ diff --git a/cores/esp32/esp32-hal-i2c.c b/cores/esp32/esp32-hal-i2c.c index df9eace7..8c17b4ff 100644 --- a/cores/esp32/esp32-hal-i2c.c +++ b/cores/esp32/esp32-hal-i2c.c @@ -24,6 +24,7 @@ #include "soc/dport_reg.h" #include "esp_attr.h" #include "esp32-hal-cpu.h" // cpu clock change support 31DEC2018 +#include "esp32-hal-log.h" #include "esp_system.h" #ifdef ESP_IDF_VERSION_MAJOR // IDF 4+ diff --git a/cores/esp32/esp32-hal-ledc.c b/cores/esp32/esp32-hal-ledc.c index 69e40274..3151f55b 100644 --- a/cores/esp32/esp32-hal-ledc.c +++ b/cores/esp32/esp32-hal-ledc.c @@ -17,6 +17,7 @@ #include "freertos/task.h" #include "freertos/semphr.h" #include "esp32-hal-matrix.h" +#include "esp32-hal-log.h" #include "soc/dport_reg.h" #include "soc/ledc_reg.h" #include "soc/ledc_struct.h" diff --git a/cores/esp32/esp32-hal-rmt.c b/cores/esp32/esp32-hal-rmt.c index 345a3c5a..d92d14cf 100644 --- a/cores/esp32/esp32-hal-rmt.c +++ b/cores/esp32/esp32-hal-rmt.c @@ -17,6 +17,7 @@ #include "freertos/semphr.h" #include "esp32-hal.h" +#include "esp32-hal-log.h" #include "esp8266-compat.h" #include "soc/gpio_reg.h" #include "soc/rmt_struct.h" diff --git a/cores/esp32/esp32-hal.h b/cores/esp32/esp32-hal.h index 731ba4e4..824e4125 100644 --- a/cores/esp32/esp32-hal.h +++ b/cores/esp32/esp32-hal.h @@ -68,7 +68,7 @@ void yield(void); #define ESP_REG(addr) *((volatile uint32_t *)(addr)) #define NOP() asm volatile ("nop") -#include "esp32-hal-log.h" +//#include "esp32-hal-log.h" #include "esp32-hal-matrix.h" #include "esp32-hal-uart.h" #include "esp32-hal-gpio.h" diff --git a/libraries/FS/src/vfs_api.cpp b/libraries/FS/src/vfs_api.cpp index 6ee24bee..72f38b40 100644 --- a/libraries/FS/src/vfs_api.cpp +++ b/libraries/FS/src/vfs_api.cpp @@ -14,6 +14,8 @@ #include "vfs_api.h" +#include "esp32-hal-log.h" + using namespace fs; FileImplPtr VFSImpl::open(const char* path, const char* mode) diff --git a/libraries/SPIFFS/src/SPIFFS.cpp b/libraries/SPIFFS/src/SPIFFS.cpp index cfa6f96c..5860968d 100644 --- a/libraries/SPIFFS/src/SPIFFS.cpp +++ b/libraries/SPIFFS/src/SPIFFS.cpp @@ -23,6 +23,8 @@ extern "C" { #include "SPIFFS.h" +#include "esp32-hal-log.h" + using namespace fs; class SPIFFSImpl : public VFSImpl diff --git a/libraries/Wire/src/Wire.cpp b/libraries/Wire/src/Wire.cpp index 3acea70a..4dc881dc 100644 --- a/libraries/Wire/src/Wire.cpp +++ b/libraries/Wire/src/Wire.cpp @@ -29,6 +29,7 @@ extern "C" { } #include "esp32-hal-i2c.h" +#include "esp32-hal-log.h" #include "Wire.h" #include "Arduino.h"