mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:32:42 -05:00 
			
		
		
		
	Static allocation and lightweight idle tasks (#323)
* added multiple idle tasks * Added multiple IDLE tasks to non-static allocation * Adjustments to tasks from PR review
This commit is contained in:
		
							parent
							
								
									f5625177f5
								
							
						
					
					
						commit
						f916ccf506
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								tasks.c
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								tasks.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2756,6 +2756,20 @@ static BaseType_t prvCreateIdleTasks( void )
 | 
			
		|||
            }
 | 
			
		||||
        #endif /* configSUPPORT_STATIC_ALLOCATION */
 | 
			
		||||
    }
 | 
			
		||||
    return xReturn;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void vTaskStartScheduler( void )
 | 
			
		||||
{
 | 
			
		||||
    BaseType_t xReturn;
 | 
			
		||||
 | 
			
		||||
    #if ( configUSE_TIMERS == 1 )
 | 
			
		||||
        {
 | 
			
		||||
            xReturn = xTimerCreateTimerTask();
 | 
			
		||||
        }
 | 
			
		||||
    #endif /* configUSE_TIMERS */
 | 
			
		||||
 | 
			
		||||
    xReturn = prvCreateIdleTasks();
 | 
			
		||||
 | 
			
		||||
    return xReturn;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue