Просмотр исходного кода

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
Armando 2 лет назад
Родитель
Сommit
a49d074cbb
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      components/esp_system/include/esp_private/critical_section.h

+ 2 - 2
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