1 /*
2  * Since at least FreeRTOS V7.5.3 uxTopUsedPriority is no longer
3  * present in the kernel, so it has to be supplied by other means for
4  * OpenOCD's threads awareness.
5  *
6  * Add this file to your project, and, if you're using --gc-sections,
7  * ``--undefined=uxTopUsedPriority'' (or
8  * ``-Wl,--undefined=uxTopUsedPriority'' when using gcc for final
9  * linking) to your LDFLAGS; same with all the other symbols you need.
10  */
11 
12 #include "FreeRTOS.h"
13 #include "esp_attr.h"
14 #include "sdkconfig.h"
15 
16 #ifdef __GNUC__
17     #define USED    __attribute__( ( used ) )
18 #else
19     #define USED
20 #endif
21 
22 /*
23  * This file is no longer needed as AFTER FreeRTOS V10.14.1 OpenOCD is fixed in the kernel.
24  * #ifdef CONFIG_ESP32_DEBUG_OCDAWARE
25  *   const int USED DRAM_ATTR uxTopUsedPriority = configMAX_PRIORITIES - 1;
26  * #endif
27  */
28