Tasks switching log added (use -DDEBUG_TASKS=YES to enable and CLI command "print tsl" to see it, only works on Horus)

This commit is contained in:
Damjan Adamic
2016-04-03 17:56:32 +02:00
parent 9673df83a7
commit a8aa6148e5
7 changed files with 122 additions and 1 deletions
+7 -1
View File
@@ -39,6 +39,7 @@
/*---------------------------- Include ---------------------------------------*/
#include <coocox.h>
#include "debug.h"
/*---------------------------- Variable Define -------------------------------*/
@@ -790,7 +791,12 @@ void Schedule(void)
CoStkOverflowHook(pCurTcb->taskID); /* Yes,call handler */
}
#endif
#if defined(DEBUG_TASKS)
CoTaskSwitchHook(pRdyTcb->taskID);
#endif
SwitchContext(); /* Call task context switch */
}