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
pull/10828/head
Armando 2023-02-16 14:53:36 +08:00
rodzic 31b7f8f1d8
commit a49d074cbb
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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 * SPDX-License-Identifier: Apache-2.0
*/ */
@ -13,7 +13,7 @@
*/ */
#pragma once #pragma once
#include "freertos/portmacro.h" #include "freertos/FreeRTOS.h"
#include "spinlock.h" #include "spinlock.h"
#ifdef __cplusplus #ifdef __cplusplus