MicroC Code Generator : OS Definition Tool : APIs : Task/ISR APIs : Memory Management: Beginning and Ending Code for Task/ISR

Memory Management: Beginning and Ending Code for Task/ISR

APIs in the OSDT (Memory Management Page) for Task/ISR leading and trailing code:

Task/ISR Beginning Code(nameid, profileName):

Specifies the code added at the beginning of a Task/ISR body.
Task/ISR Beginning Code Entry 2(nameid, profileName):

Specifies the code added at the beginning of a Task/ISR body. It is added right after the Task/ISR Beginning Code API definition.
Note: If a Task is using Periodic Activation, the code for this API is generated after the code that handles the periodic activation.
Task/ISR Ending Code(nameid, profileName):

Specifies the code added at the end of a Task/ISR body.

Use this API to put code or function-call in the last line of the generated code in a Task/ISR (before the 'TerminateTask' if defined).

This API is defined outside the Super-Step Loop, so it can be used to generate a notification when a given number of steps have been performed.