|
osThreadDef(StartTask, StartTaskEntry, osPriorityNormal, 0, 128);
StartTaskHandle = osThreadCreate(osThread(StartTask), NULL);
/* definition and creation of Led0Task */
osThreadDef(Led0Task, Led0TaskEntry, osPriorityIdle, 0, 128);
Led0TaskHandle = osThreadCreate(osThread(Led0Task), NULL);
/* definition and creation of Led1Task */
osThreadDef(Led1Task, Led1TaskEntry, osPriorityIdle, 0, 128);
Led1TaskHandle = osThreadCreate(osThread(Led1Task), NULL);
/*****************************************************************************/
/* Allocate space for the stack used by the task being created. */
pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) );
这里4*128 = 512,但是Tracealyzer里面看到是520字节
|
|