2016-08-24 09:21:27 +00:00
|
|
|
/*
|
|
|
|
* Since at least FreeRTOS V7.5.3 uxTopUsedPriority is no longer
|
|
|
|
* present in the kernel, so it has to be supplied by other means for
|
|
|
|
* OpenOCD's threads awareness.
|
|
|
|
*
|
|
|
|
* Add this file to your project, and, if you're using --gc-sections,
|
|
|
|
* ``--undefined=uxTopUsedPriority'' (or
|
|
|
|
* ``-Wl,--undefined=uxTopUsedPriority'' when using gcc for final
|
|
|
|
* linking) to your LDFLAGS; same with all the other symbols you need.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "FreeRTOS.h"
|
2017-09-11 12:15:27 +00:00
|
|
|
#include "esp_attr.h"
|
2016-08-24 09:21:27 +00:00
|
|
|
#include "sdkconfig.h"
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define USED __attribute__((used))
|
|
|
|
#else
|
|
|
|
#define USED
|
|
|
|
#endif
|
|
|
|
|
2016-10-28 04:05:42 +00:00
|
|
|
#ifdef CONFIG_ESP32_DEBUG_OCDAWARE
|
2017-09-11 12:15:27 +00:00
|
|
|
const int USED DRAM_ATTR uxTopUsedPriority = configMAX_PRIORITIES - 1;
|
|
|
|
#endif
|