From 8c7d85f846c889bc867910cd06ef36ce7f84d9ca Mon Sep 17 00:00:00 2001 From: RichardBarry Date: Fri, 6 Feb 2009 13:27:41 +0000 Subject: [PATCH] Add more comments. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@684 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/NEC_V850ES_IAR/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Demo/NEC_V850ES_IAR/main.c b/Demo/NEC_V850ES_IAR/main.c index b32f85e8f..54bd41f7a 100644 --- a/Demo/NEC_V850ES_IAR/main.c +++ b/Demo/NEC_V850ES_IAR/main.c @@ -192,7 +192,7 @@ unsigned portBASE_TYPE uxLEDToUse = 0; { xDelayPeriod = mainERROR_DELAY; } - + /* Initialise xLastWakeTime before it is used. After this point it is not written to directly. */ xLastWakeTime = xTaskGetTickCount(); @@ -201,6 +201,7 @@ unsigned portBASE_TYPE uxLEDToUse = 0; operating without error. */ for( ;; ) { + /* Wait until it is time to check all the other tasks again. */ vTaskDelayUntil( &xLastWakeTime, xDelayPeriod ); if( lRegTestStatus != pdPASS ) @@ -257,6 +258,8 @@ unsigned portBASE_TYPE uxLEDToUse = 0; } #endif + /* Toggle the LED. The toggle rate will depend on whether or not an + error has been found in any tasks. */ vParTestToggleLED( uxLEDToUse ); } } -- 2.39.5