Interrupt counters added (use -DDEBUG_INTERRUPTS=YES to enable and CLI command "print int" to see them)

This commit is contained in:
Damjan Adamic
2016-04-03 17:51:20 +02:00
parent a0b4053e82
commit 9673df83a7
21 changed files with 188 additions and 52 deletions
+3
View File
@@ -37,6 +37,8 @@
/*---------------------------- Include ---------------------------------------*/
#include <coocox.h>
#include "debug.h"
U64 OSTickCnt = 0; /*!< Current system tick counter */
/**
@@ -90,6 +92,7 @@ OS_STK *InitTaskContext(FUNCPtr task,void *param,OS_STK *pstk)
*/
void SysTick_Handler(void)
{
DEBUG_INTERRUPT(INT_TICK);
OSSchedLock++; /* Lock scheduler. */
OSTickCnt++; /* Increment systerm time. */
#if CFG_TASK_WAITTING_EN >0