SYS/BIOS 学习历程(一)Creating a SYS/BIOS Project with the TI Resource Explorer

Creating a SYS/BIOS Project with the TI Resource Explorer

SYS/BIOS 学习历程(一)Creating a SYS/BIOS Project with the TI Resource Explorer_第1张图片

SYS/BIOS 学习历程(一)Creating a SYS/BIOS Project with the TI Resource Explorer_第2张图片

Notational Conventions
This document uses the following conventions:
• Program listings, program examples, and interactive displays are shown in a special typeface.
Examples use a bold version of the special typeface for emphasis.
Here is a sample program listing:

#include
int main(){
System_printf("Hello World!\n");
return (0);
}
• Square brackets ( [ and ] ) identify an optional parameter. If you use an optional parameter, you
specify the information within the brackets. Unless the square brackets are in a bold typeface, do not
enter the brackets themselves.


#include
#include
#include
#include
#include
#include //
/*======== taskFxn ========*/
Void taskFxn(UArg a0, UArg a1)
{
    System_printf("enter taskFxn()\n");
    Task_sleep(10);
    System_printf("exit taskFxn()\n");
}
/*======== main ======== */
Int main()

    Task_Handle task;
    Error_Block eb;
    System_printf("enter main()\n");
    Error_init(&eb);
    task = Task_create(taskFxn, NULL, &eb);
    if (task == NULL) {
        System_printf("Task_create() failed!\n");
        BIOS_exit(0);
    }
    BIOS_start();    /* does not return */
    return(0);
}


参考:TI SYS/BIOS v6.35 Real-time Operating System User's Guide

SYS/BIOS 学习历程(一)Creating a SYS/BIOS Project with the TI Resource Explorer_第3张图片

SYS/BIOS 学习历程(一)Creating a SYS/BIOS Project with the TI Resource Explorer_第4张图片SYS/BIOS 学习历程(一)Creating a SYS/BIOS Project with the TI Resource Explorer_第5张图片

你可能感兴趣的:(SYS/BIOS 学习历程(一)Creating a SYS/BIOS Project with the TI Resource Explorer)