Keil Logo

RTX51 Tiny Programs

When you use RTX51 Tiny, you create a separate function task for each task in your application. For example:

void check_serial_io_task (void) _task_ 1
/* This task checks for serial I/O */

void process_serial_cmds_task (void) _task_ 2
/* This task processes serial commands */

void check_kbd_io_task (void) _task_ 3
/* This task checks for keyboard I/O */

void process_kbd_cmds_task (void) _task_ 4
/* This task processes keyboard commands */

void startup_task (void) _task_ 0
os_create_task (1);    /* Create serial_io Task */
os_create_task (2);    /* Create serial_cmds Task */
os_create_task (3);    /* Create kbd_io Task */
os_create_task (4);    /* Create kbd_cmds Task */

os_delete_task (0);    /* Delete the Startup Task */

In this example, each function defines an RTX51 Tiny task. RTX51 Tiny programs do not have a main C function. Instead, RTX51 Tiny starts executing task 0. In typical applications, task 0 simply creates all the other tasks.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.