From: richardbarry Date: Mon, 25 Apr 2011 14:41:15 +0000 (+0000) Subject: Change Demo/Common/Minimal/death.c so it takes into account the timer daemon task... X-Git-Tag: V7.0.1~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea303ef18d5c8b93b22ec65f0b6d23613a9510b3;p=freertos Change Demo/Common/Minimal/death.c so it takes into account the timer daemon task in its calculation of the number of tasks that should be running. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1387 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/Common/Minimal/death.c b/Demo/Common/Minimal/death.c index a923960b5..509ebd191 100644 --- a/Demo/Common/Minimal/death.c +++ b/Demo/Common/Minimal/death.c @@ -143,6 +143,13 @@ unsigned portBASE_TYPE *puxPriority; started. Therefore the idle task is not yet accounted for. We correct this by increasing uxTasksRunningAtStart by 1. */ uxTasksRunningAtStart++; + + /* FreeRTOS version 7.0.0 can optionally create a timer service task. If + this is done, then uxTasksRunningAtStart needs incrementing again as that + too is created when the scheduler is started. */ + #if configUSE_TIMERS == 1 + uxTasksRunningAtStart++; + #endif } /*-----------------------------------------------------------*/