Keil Logo

Real-Time Function Tasks

The C166 Compiler provides support for the AR166 Advanced RTOS, the RTX166 Full, and RTX166 Tiny real-time multitasking operating systems. Through use of the _task_ keyword, you may define a function as a real-time task. For example:

void func (void) _task_ task_num


task_num is a task ID number in the range 0-255 for RTX166 Full or 0-31 for RTX166 Tiny.

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.