]> git.sur5r.net Git - freertos/commitdiff
Change Demo/Common/Minimal/death.c so it takes into account the timer daemon task...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 25 Apr 2011 14:41:15 +0000 (14:41 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 25 Apr 2011 14:41:15 +0000 (14:41 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1387 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/Common/Minimal/death.c

index a923960b5b7ef84108afda2b4d128cc756f0de76..509ebd1915c9169963f25d42d9ffc82f2bd4f433 100644 (file)
@@ -143,6 +143,13 @@ unsigned portBASE_TYPE *puxPriority;
        started. Therefore the idle task is not yet accounted for. We correct\r
        this by increasing uxTasksRunningAtStart by 1. */\r
        uxTasksRunningAtStart++;\r
+       \r
+       /* FreeRTOS version 7.0.0 can optionally create a timer service task.  If\r
+       this is done, then uxTasksRunningAtStart needs incrementing again as that\r
+       too is created when the scheduler is started. */\r
+       #if configUSE_TIMERS == 1\r
+               uxTasksRunningAtStart++;\r
+       #endif\r
 }\r
 /*-----------------------------------------------------------*/\r
                                        \r