mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01: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
					
				
							
								
								
									
										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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user