-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to OpenOCD FreeRTOS debug
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* 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" | ||
|
||
#ifdef __GNUC__ | ||
#define USED __attribute__((used)) | ||
#else | ||
#define USED | ||
#endif | ||
|
||
volatile const int USED uxTopUsedPriority = configMAX_PRIORITIES - 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters