"Chuang Long tms320c6748 Development Board trial" +sysbios two ways to create a new task __ios

Source: Internet
Author: User
Method One: Use the program to create a new
Handle to task_handletask;//task

Task=task_create (TASKMAIN,NULL,&EB);

if (task==null)
{
system_printf ("Task_create () failed!\n");
Bios_exit (0);
Copy Code
Create a new task using the Task_create function, which returns the handle to the task and returns NULL, or 0, if the new failure occurs.
Where Taskmain is the function to be performed by this task, and the most important part of the task, as in ucosii, each task is an infinite loop, and in Sysbios, this taskmain is almost the same meaning.
Method Two: New task with CFG file
Open the hardware abstraction layer, the CFG file, and click the task component.


Click Instance, you can see that there is an add ... button, click on it to add it,

To enter are: The task's handle my name, task function, priority, stack size, and other parameters.
You can see the tasks you added in the Outline window

This task is added to the completion.
And of course there's the definition of the function that the task is going to perform, and what kind of code you can add to the function if you want it to work.
Finally, start the Sys/bios system.
Bios_start (); Copy Code
Would like to use their own projects Sysbios, you can find Sysbios to learn a lot of things, and the trial time is limited, then have to give up, or use the old method, that Sysbios learning to come to an ending, the next time to start their own projects.
Originally also intend to do a AD7606 of their own floor, is also forced to try the time problem, or first verify the function, algorithm bar.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.