CARM User's Guide

Discontinued

__task: Task Function

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

void funcname (void)  __task

Where:

funcnameis the name of the task function.
__taskindicates 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.