mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-13 17:44:38 +02:00
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:
@@ -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. */
|
||||
|
@@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user