X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Demo%2FARM7_LPC2138_Rowley%2Fmain.c;h=4dae2144c000fabcc214c6ac2f3a25da7f1edf07;hb=baa9ed196e2945d39b1487fbd47e7f089a534ee5;hp=4770321edf33b86d054c89ffad26dcc20d9aeab3;hpb=f6abf70e60051c8dc271e329eeef65028ba3126b;p=freertos diff --git a/Demo/ARM7_LPC2138_Rowley/main.c b/Demo/ARM7_LPC2138_Rowley/main.c index 4770321ed..4dae2144c 100644 --- a/Demo/ARM7_LPC2138_Rowley/main.c +++ b/Demo/ARM7_LPC2138_Rowley/main.c @@ -81,6 +81,7 @@ #include "integer.h" #include "PollQ.h" #include "blocktim.h" +#include "recmutex.h" /* Hardware configuration definitions. */ #define mainBUS_CLK_FULL ( ( unsigned portCHAR ) 0x01 ) @@ -171,6 +172,7 @@ int main( void ) vStartDynamicPriorityTasks(); vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY ); vCreateBlockTimeTasks(); + vStartRecursiveMutexTasks(); /* Start the tasks defined within this file. */ xTaskCreate( vLEDTask, "LED", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY, NULL ); @@ -259,6 +261,11 @@ const portCHAR * const pcFailMessage = "FAIL\n"; xErrorOccurred = pdTRUE; } + if( xAreRecursiveMutexTasksStillRunning() != pdTRUE ) + { + xErrorOccurred = pdTRUE; + } + /* Send either a pass or fail message. If an error is found it is never cleared again. */ if( xErrorOccurred == pdTRUE )