Hello everyone, I want to activate a TSK_function in PRD function , how to do it?
The problem is that I want to call TSK_function after PRD run 10 times, I want to know if there is a API function such as SWI_post in TSK module ?
I want to realize the following codes:
void myprd()
{
int i;
if(i>9)
{
i=0;
//SWI_post(&SWI0); //call SWI_function()
// if I want to call TSK_function instead of SWI_function, how to do it? Which API function of TSK module can I use?
}
return;
}
Is it ok to do it like this? If not, how can I cause TSK to be activated from PRD?
Regards
lex