Page 1 of 1

Get priority of current task

Posted: Fri Apr 04, 2014 7:23 am
by sulliwk06
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?

Re: Get priority of current task

Posted: Fri Apr 04, 2014 9:55 am
by pbreed
#include <ucos.h>

BYTE OSTaskID( void );