Hi,
I need some help to do a task change as fast as possible.
I have two task at different priority. The task1 do some process and task2 communicate the processed results.
The problem is that I need to communicate the results as fast as possible but sometimes it’s taking about 100ms.
Thanks.
Task2(){//Priority 2
SEM_pend(semCom,SYS_FOREVER);
/*do communication*/
}
Task1(){//Priority 1
if(fg_process){
/*do process and analysis*/
}
}
PRD_100ms(){
fg_process = 1;
}
HWI_pin(){
SEM_pend(semCom);
}