I'm trying to figure out if there is some way to obtain the priority of the currently executing task so I can determine which task is calling a certain function.
Is there a function to do this? Or has someone done this on their own with some trick?
Get priority of current task
Re: Get priority of current task
#include <ucos.h>
BYTE OSTaskID( void );
BYTE OSTaskID( void );