Keil Logo

Real-Time Function Tasks

The Cx51 Compiler supports the RTX51 Full and RTX51 Tiny real-time multitasking operating systems with the _task_ and _priority_ keywords.

  • The _task_ keyword specifies a function is a real-time task.
  • The _priority_ keyword specifies the priority for the task.

For example:

void func (void) _task_ num _priority_ pri

Where

num is a task ID number from 0-255 for RTX51 Full or 0-15 for RTX51 Tiny.
pri is the priority for the task. Refer to the RTX51 User's Guide or the RTX51 Tiny User's Guide for more information.

Note

  • Task functions must be declared with a void return type and a void argument list.
  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.