Task_Params_init(&taskParams_5ms); taskParams_5ms.instance->name = FIVE_MS_TASK_NAME; /* Set the task priority higher than the default priority (1) */ /*Set priority*/ taskParams_5ms.priority = 5; taskParams_5ms.stack = ApplicationTask5ms_TaskStack; taskParams_5ms.stackSize = sizeof (ApplicationTask5ms_TaskStack); task = Task_create(ApplicationTask5ms_TaskFunction, &taskParams_5ms, &eb); if(NULL == task) { BIOS_exit(0); } //AppUtils_Printf(MSG_NORMAL, "DEBUG 7 \r\n");//debug /* Initialize the 10ms application and BSW task parameters*/ Task_Params_init(&taskParams_10ms); taskParams_10ms.instance->name = TEN_MS_TASK_NAME; /* Set the task priority higher than the default priority (1) */ /*Set priority*/ taskParams_10ms.priority = 6; taskParams_10ms.stack = ApplicationTask10ms_TaskStack; taskParams_10ms.stackSize = sizeof (ApplicationTask10ms_TaskStack); task = Task_create(ApplicationTask10ms_TaskFunction, &taskParams_10ms, &eb); if(NULL == task) { BIOS_exit(0); } //AppUtils_Printf(MSG_NORMAL, "DEBUG 8 \r\n");//debug /* Initialize the 50ms application and BSW task parameters*/ Task_Params_init(&taskParams_50ms); taskParams_50ms.instance->name = FIFTY_MS_TASK_NAME; /* Set the task priority higher than the default priority (1) */ /*Set priority*/ taskParams_50ms.priority = 7; taskParams_50ms.stack = ApplicationTask50ms_TaskStack; taskParams_50ms.stackSize = sizeof (ApplicationTask50ms_TaskStack); task = Task_create(ApplicationTask50ms_TaskFunction, &taskParams_50ms, &eb); if(NULL == task) { BIOS_exit(0); } //AppUtils_Printf(MSG_NORMAL, "DEBUG 9 \r\n");//debug /* Initialize the 100ms application and BSW task parameters*/ Task_Params_init(&taskParams_100ms); taskParams_100ms.instance->name = HUNDRED_MS_TASK_NAME; /* Set the task priority higher than the default priority (1) */ /*Set priority*/ taskParams_100ms.priority = 8; taskParams_100ms.stack = ApplicationTask100ms_TaskStack; taskParams_100ms.stackSize = sizeof (ApplicationTask100ms_TaskStack); task = Task_create(ApplicationTask100ms_TaskFunction, &taskParams_100ms, &eb); if(NULL == task) { BIOS_exit(0); }