]> git.sur5r.net Git - freertos/blobdiff - Demo/ARM7_LPC2138_Rowley/main.c
UpdUpdate IAR projects to use Embedded Workbench V5.11.
[freertos] / Demo / ARM7_LPC2138_Rowley / main.c
index ce83463963703302afde901c7078a28b620e9aa0..4dae2144c000fabcc214c6ac2f3a25da7f1edf07 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-       FreeRTOS.org V4.6.0 - Copyright (C) 2003-2007 Richard Barry.\r
+       FreeRTOS.org V4.7.0 - Copyright (C) 2003-2007 Richard Barry.\r
 \r
        This file is part of the FreeRTOS.org distribution.\r
 \r
@@ -28,8 +28,9 @@
        and contact details.  Please ensure to read the configuration and relevant \r
        port sections of the online documentation.\r
 \r
-       Also see http://www.SafeRTOS.com for an IEC 61508 compliant version along\r
-       with commercial development and support options.\r
+       Also see http://www.SafeRTOS.com a version that has been certified for use\r
+       in safety critical systems, plus commercial licensing, development and\r
+       support options.\r
        ***************************************************************************\r
 */\r
 \r
@@ -80,6 +81,7 @@
 #include "integer.h"\r
 #include "PollQ.h"\r
 #include "blocktim.h"\r
+#include "recmutex.h"\r
 \r
 /* Hardware configuration definitions. */\r
 #define mainBUS_CLK_FULL                                       ( ( unsigned portCHAR ) 0x01 )\r
@@ -170,6 +172,7 @@ int main( void )
        vStartDynamicPriorityTasks();\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
     vCreateBlockTimeTasks();\r
+    vStartRecursiveMutexTasks();\r
 \r
        /* Start the tasks defined within this file. */\r
        xTaskCreate( vLEDTask, "LED", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY, NULL );\r
@@ -258,6 +261,11 @@ const portCHAR * const pcFailMessage = "FAIL\n";
                        xErrorOccurred = pdTRUE;\r
                }\r
 \r
+               if( xAreRecursiveMutexTasksStillRunning() != pdTRUE )\r
+               {\r
+                       xErrorOccurred = pdTRUE;\r
+               }\r
+\r
                /* Send either a pass or fail message.  If an error is found it is\r
                never cleared again. */\r
                if( xErrorOccurred == pdTRUE )\r