Part Number: PROCESSOR-SDK-AM335X
Tool/software: TI-RTOS
hello
every expects
This is Tomiyama from Tokyo.
When I code task in app.cfg file just as bellow:
var task1Params = new Task.Params();
task1Params.instance.name = "taskHeadCyc";
Program.global.taskHeadCyc = Task.create("&taskHeadCyc", task1Params);
Q1.Are there need to write main.c with this code:
Task_Params_init(&task1Params);
task1Params.instance->name = "task2";
task1Params.stackSize = 2048;
task1Params.arg0 = 2;
task1Params.priority = 15;
Error_init(&eb);
task = Task_create(taskHeadCyc, &task1Params, &eb);
if (task == NULL) {
System_printf("Task_create() failed!\n");
BIOS_exit(0);
}
Q2.If there are no need to write code with upper code, How can I call the task fuction ?
I need your help.
Thank you very much.
Tomiyama.