Hi,
After timer interrupt is generated, I am creating a task dynamically as below,
Error_Block eb;
Task_Handle ModuleStatusLedHandle;
Task_Params ModuleStatusLedHandleParams;
Error_init(&eb);
Task_Params_init(&ModuleStatusLedHandleParams);
ModuleStatusLedHandleParams.stackSize = 4 * DEFAULT_STACK_SIZE;
ModuleStatusLedHandleParams.priority = TASK_MAX_PRIORITY;
ModuleStatusLedHandleParams.arg0 = IO_MBWDT_MODE;
ModuleStatusLedHandleParams.arg1 = NULL;
ModuleStatusLedHandle =
Task_create((Task_FuncPtr)ModuleStatusLed, &ModuleStatusLedHandleParams, &eb);
When timeout occurs, I am getting as shown below in the console,
What may be the reason for this error ?
Inside timerISRHandler, do I need to clear the timer interrupt? If interrupt clear is required, what API can I use for it?
For resetting timer count register, can I use the code below ?
HWREG(TIMER5_BASE + TIMER_O_TAV)=0;
Regards
Sandra