This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to distinguish if a function runs in a Task/SWI/HWI

Hi,

I've a function for error handling, that does some System_printf(). It is called from various Tasks and HWIs. I'm using SYSStd what does not work on HWI and SWIs, therefore I want to check if it is running on a Task.

Is there a function to distinguish in what content a function is executed?
Is something like that working:

if(Task_self()==NULL)
{
  //HWI or SWI
}else
{
  //Task
}

I'm using SYS/Bios 6.33.06.50 with CCS 5.2 on a C6670

Thanks,

Sebastian