]> git.sur5r.net Git - freertos/commitdiff
Add more comments.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 6 Feb 2009 13:27:41 +0000 (13:27 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 6 Feb 2009 13:27:41 +0000 (13:27 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@684 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/NEC_V850ES_IAR/main.c

index b32f85e8fac2599ee8f396f743898781c7cecd13..54bd41f7a315e42e9471a95c5a627f4703bec8b7 100644 (file)
@@ -192,7 +192,7 @@ unsigned portBASE_TYPE uxLEDToUse = 0;
        {\r
                xDelayPeriod = mainERROR_DELAY;\r
        }\r
        {\r
                xDelayPeriod = mainERROR_DELAY;\r
        }\r
-\r
+       \r
        /* Initialise xLastWakeTime before it is used.  After this point it is not\r
        written to directly. */\r
        xLastWakeTime = xTaskGetTickCount();\r
        /* Initialise xLastWakeTime before it is used.  After this point it is not\r
        written to directly. */\r
        xLastWakeTime = xTaskGetTickCount();\r
@@ -201,6 +201,7 @@ unsigned portBASE_TYPE uxLEDToUse = 0;
        operating without error. */\r
        for( ;; )\r
        {\r
        operating without error. */\r
        for( ;; )\r
        {\r
+               /* Wait until it is time to check all the other tasks again. */\r
                vTaskDelayUntil( &xLastWakeTime, xDelayPeriod );\r
                \r
                if( lRegTestStatus != pdPASS )\r
                vTaskDelayUntil( &xLastWakeTime, xDelayPeriod );\r
                \r
                if( lRegTestStatus != pdPASS )\r
@@ -257,6 +258,8 @@ unsigned portBASE_TYPE uxLEDToUse = 0;
                }\r
                #endif\r
 \r
                }\r
                #endif\r
 \r
+               /* Toggle the LED.  The toggle rate will depend on whether or not an\r
+               error has been found in any tasks. */\r
                vParTestToggleLED( uxLEDToUse );\r
        }\r
 }\r
                vParTestToggleLED( uxLEDToUse );\r
        }\r
 }\r