mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-03 18:22:45 -05:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									51f445fc67
								
							
						
					
					
						commit
						1f2a287b7f
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
/*-----------------------------------------------------------*/
 | 
			
		||||
					
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue