Keil Logo

__task: Task Function

Real-Time OS Functions may be defined using the __task function attribute:

void funcname (void)  __task

Where:

funcname is the name of the task function.
__task indicates the function is a task function.

The __task attribute affects the generated code of the function as follows:

  • The function does not include a prolog or an epilog. Therefore, it is not possible to call the function from other routines. Instead, the Real-Time Operating System must save and restore all CPU register context.
  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.