MicroC Code Generator : Code Options : OSEK GetResource Usage

OSEK GetResource Usage

When a TASK/ISR has related timeouts, MicroC calls:

1.
GetResource(RES_SCHEDULER) before the code section that swaps the TASK/ISR event buffer and before the call to genTmEvent(...) in on<TIMER>OVERFLOW Tasks (in the file glob_func.c).
2.
ReleaseResource(RES_SCHEDULER) after the code section that swaps the TASK/ISR event buffer and after the call to genTmEvent(...) in on<TIMER>OVERFLOW Tasks (in the file glob_func.c).

This resource usage can be avoided by clearing the Code Generation Profile option:

Options > OS > Allow GetResource(RES_SCHEDULER) Usage
Note: This applies to OSEK only.