Functions for checking API misusage (STM32 with Atollic IDE(GCC))

This code contains functionality for detecting misusage of the FreeRTOS API. Define configCHECK_API_USAGE in FreeRTOSConfig.h to enable the checks. Errors detected are:

* Calling non-FromISR functions from inside an interrupt routine

* Using API before scheduler is started

* Calling FromISR functions from interrupt routines with a too high priority

May not find all such errors, but can certainly help avoiding many strange errors caused by API misusage. Define LOG_ERR() to use your printf/logging function to get a log printout when error occurrs.


A colleague of mine, Martin Belohorka, also added a function for getting the Task name.



Please sign in to leave a comment.