I have a basic project running, but tasks are not doing what I want so I would like to use the traceTASKSWITCHED
IN/OUT macros to output something to a logic analyzer.
So here is my code
void setLogOutput (unsigned long c)
if (c == 0)
a = 0;
#define traceTASK_SWITCHED_IN() setLogOutput(pxCurrentTCB->uxTaskNumber)
#define traceTASK_SWITCHED_OUT() setLogOutput(0)
Obviously setLogOutput doesn’t do anything right now, and I know it
But the point is that neighter SWITCHEDIN nor SWITCHED
OUT are ever called or compiled.
Breakpoints in tasks.c are broken.
I cannot understand what I am doing wrong, could anybody please help me?