Created
March 18, 2015 05:33
-
-
Save good5dog5/7cde65a0478aa532c393 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void vTaskStartScheduler( void ) | |
{ | |
portBASE_TYPE xReturn; | |
/* Add the idle task at the lowest priority. */ | |
#if ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) | |
{ | |
/* Create the idle task, storing its handle in xIdleTaskHandle so it can | |
be returned by the xTaskGetIdleTaskHandle() function. */ | |
xReturn = xTaskCreate( prvIdleTask, ( signed char * ) "IDLE", tskIDLE_STACK_SIZE, ( void * ) NULL, ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), &xIdleTaskHandle ); | |
} | |
#else | |
{ | |
/* Create the idle task without storing its handle. */ | |
xReturn = xTaskCreate( prvIdleTask, ( signed char * ) "IDLE", tskIDLE_STACK_SIZE, ( void * ) NULL, ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), NULL ); | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment