mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-08 16:21:46 +00:00
fix(freertos/idf): Define configLIST_VOLATILE for list elements
It was noticed that when high level compiler optimizations are enabled, the compiler optimizes some list manupulation code. This commit enables the configLIST_VOLATILE for list elements to prevent the compiler from optimizing out essential kernel code.
This commit is contained in:
@@ -178,6 +178,10 @@
|
||||
#define configTIMER_TASK_STACK_DEPTH CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH
|
||||
#define configTIMER_SERVICE_TASK_NAME CONFIG_FREERTOS_TIMER_SERVICE_TASK_NAME
|
||||
|
||||
/* ------------------------ List --------------------------- */
|
||||
|
||||
#define configLIST_VOLATILE volatile /* We define List elements as volatile to prevent the compiler from optimizing out essential code */
|
||||
|
||||
/* -------------------- API Includes ----------------------- */
|
||||
|
||||
#if CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY
|
||||
|
Reference in New Issue
Block a user