Debug Options: Trace State Transitions (reportState function) This is from the traceFunc.c file and can be easily modified to send the output anywhere. ISR (MY_INTERRUPT) { EnterISR(); TRACE_ISR_ENTER(1); COUNTERdi = 0; TRACE_ISR_LEAVE(1); LeaveISR(); } #ifdef TRACE_ISR void traceIsr(int isrNo, char indx) { TickType sysTime; GetCounterValue(SYS_TIMER, &sysTime); OSPrintf("%c ISR No %d %ld\n", indx, isrNo, (long int)sysTime); } #endif
This is from the traceFunc.c file and can be easily modified to send the output anywhere.