freertos: move esp_compiler.h include from FreeRTOS.h

Moved the inclusion of esp_compiler.h from FreeRTOS.h to
the app specific FreeRTOSConfig.h where the unlikely()
macro is used. This change is in alignment with the upstream
FreeRTOS.h file.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
This commit is contained in:
Sudeep Mohanty
2021-09-07 13:07:02 +05:30
parent 1a19014d3d
commit 3b40d77584
2 changed files with 4 additions and 5 deletions

View File

@@ -53,11 +53,6 @@
#endif
/* *INDENT-ON* */
#ifdef ESP_PLATFORM
/* for likely and unlikely */
#include "esp_compiler.h"
#endif // ESP_PLATFORM
/* Application specific configuration options. */
#include "freertos/FreeRTOSConfig.h"
/* Basic FreeRTOS definitions. */

View File

@@ -71,6 +71,10 @@
#define FREERTOS_CONFIG_H
#include "sdkconfig.h"
/* for likely and unlikely */
#include "esp_compiler.h"
// The arch-specific FreeRTOSConfig.h in port/<arch>/include.
#include_next "freertos/FreeRTOSConfig.h"