TrampolineRTOS / trampoline

Trampoline is a static RTOS for small embedded systems. Its API is aligned with OSEK/VDX OS and AUTOSAR OS 4.2 standards.
GNU General Public License v2.0
599 stars 263 forks source link

making the idle function efficient by using WFE instead empty while #131

Closed maiabozaid closed 10 months ago

maiabozaid commented 12 months ago

there was a problem with the idle function entering empty while looping, which consumes the processor instead of being in sleep mode, it was discovered during working on my GP which is sponsored by Siemens so we used a commercial tool to test the processor performance, I have edited it to make it wait for an event (WFE) which achieves the sleep mode and doesn't consume the processor.

jlbirccyn commented 10 months ago

Hello @maiabozaid

Thanks for your contribution

Best regards