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 togenTmEvent(...)
in on<TIMER>OVERFLOW Tasks (in thefile glob_func.c
).
2.ReleaseResource(RES_SCHEDULER)
after the code section that swaps the TASK/ISR event buffer and after the call togenTmEvent(...)
in on<TIMER>OVERFLOW Tasks (in the fileglob_func.c
).This resource usage can be avoided by clearing the Code Generation Profile option: