]> 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 4770321edf33b86d054c89ffad26dcc20d9aeab3..4dae2144c000fabcc214c6ac2f3a25da7f1edf07 100644 (file)
@@ -81,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
@@ -171,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
@@ -259,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