You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
584 B

  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. #include "FreeRTOS.h"
  12. #ifdef __GNUC__
  13. #define USED __attribute__((used))
  14. #else
  15. #define USED
  16. #endif
  17. const int USED uxTopUsedPriority = configMAX_PRIORITIES;