From 07abd9092a2db40be2cd3cd68d19ee0dcfac778a Mon Sep 17 00:00:00 2001 From: Shubham Kulkarni Date: Wed, 8 Jul 2020 12:08:33 +0530 Subject: [PATCH] Include header file soc/cpu.h in memprot.c and system_api.c This fixes build issues with Vanilla FreeRTOS --- components/esp32s2/memprot.c | 1 + components/esp_system/system_api.c | 1 + 2 files changed, 2 insertions(+) diff --git a/components/esp32s2/memprot.c b/components/esp32s2/memprot.c index f679f69e26..d89a526508 100644 --- a/components/esp32s2/memprot.c +++ b/components/esp32s2/memprot.c @@ -30,6 +30,7 @@ #include "hal/memprot_ll.h" #include "esp_fault.h" #include "esp_log.h" +#include "soc/cpu.h" extern int _iram_text_end; extern int _data_start; diff --git a/components/esp_system/system_api.c b/components/esp_system/system_api.c index d33c611f4c..dc525fc83d 100644 --- a/components/esp_system/system_api.c +++ b/components/esp_system/system_api.c @@ -3,6 +3,7 @@ #include "esp_heap_caps.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" +#include "soc/cpu.h" #include "soc/rtc.h" #include "soc/rtc_cntl_reg.h" #include "panic_internal.h"