Tool/software: TI-RTOS
Hi there, I have a code that does this:
Fxn A (){
while(1){
task A;
}
Callback fxn (){
interrupt A;
}
However, when interrupt A is triggered, my while(1) stops.
Even though I try to put this code in the interrupt, hoping to recall the task, it still doesn't work.
Task_Params_init(&taskParams);
taskParams.arg0 = 1000000 / Clock_tickPeriod;
taskParams.stackSize = TASKSTACKSIZE;
taskParams.stack = &task0Stack;
Task_construct(&task0Struct, (Task_FuncPtr)ADXL362Fxn, &taskParams, NULL);
Anyone knows how to go back to the task A after an interrupt is triggered?