From a49d074cbb9e31b37600dfd04a2be665f468f90f Mon Sep 17 00:00:00 2001 From: Armando Date: Thu, 16 Feb 2023 14:53:36 +0800 Subject: [PATCH] esp_system: include FreeRTOS.h explicitly in critical_section.h Prior to this commit, if only critical_section.h is included, there might be error about portNUM_PROCESSORS undeclared. As critical_section.h should be OS-agnostic, added FreeRTOS.h in it --- components/esp_system/include/esp_private/critical_section.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esp_system/include/esp_private/critical_section.h b/components/esp_system/include/esp_private/critical_section.h index 2e3a75d75f..9d784d2a91 100644 --- a/components/esp_system/include/esp_private/critical_section.h +++ b/components/esp_system/include/esp_private/critical_section.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -13,7 +13,7 @@ */ #pragma once -#include "freertos/portmacro.h" +#include "freertos/FreeRTOS.h" #include "spinlock.h" #ifdef __cplusplus