]> git.sur5r.net Git - freertos/blobdiff - Demo/RX600_RX62N-MDK_Renesas/RTOSDemo/HighFrequencyTimerTest.c
Update the RX MDK demo to include the web server. Minor tidy up to the RDK version...
[freertos] / Demo / RX600_RX62N-MDK_Renesas / RTOSDemo / HighFrequencyTimerTest.c
index f971c4d050913cc756727404f2e319d199bf4c0b..3dde50dcd38f926b4180e934a323e35a97c609c9 100644 (file)
@@ -83,6 +83,10 @@ static void prvTimer2IntHandler( void );
 /* Stores the value of the maximum recorded jitter between interrupts. */\r
 volatile unsigned short usMaxJitter = 0;\r
 \r
+/* Counts the number of high frequency interrupts - used to generate the run\r
+time stats. */\r
+volatile unsigned long ulHighFrequencyTickCount = 0UL;\r
+\r
 /*-----------------------------------------------------------*/\r
 \r
 void vSetupHighFrequencyTimer( void )\r
@@ -146,7 +150,10 @@ static unsigned long ulErrorCount = 0UL;
                \r
                usMaxCount = usCurrentCount;\r
        }\r
-               \r
+\r
+       /* Used to generate the run time stats. */\r
+       ulHighFrequencyTickCount++;\r
+       \r
        /* Clear the timer. */\r
        timerTIMER_3_COUNT_VALUE = 0;\r
        \r