]> git.sur5r.net Git - freertos/blobdiff - Demo/Common/Minimal/death.c
Change Demo/Common/Minimal/death.c so it takes into account the timer daemon task...
[freertos] / 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