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
607 stars 269 forks source link

ActivateTask called from an alarm callback #42

Closed KamelHacene closed 4 years ago

KamelHacene commented 7 years ago

The functional test alarms_s10 calls the ActivateTask service in an alarm callback (function test_callback_instance, file callback_instance.c). This is forbidden by AUTOSAR, we should call instead directly the activate task service. Doing so will prevent us from doing a context switch (good thing !), however it'll change the tests orders...

I'm moving away this test from the test sequence for now, i'll check into it later.

jlbirccyn commented 7 years ago

In fact, OSEK/VDX forbids calling all services except SuspendAllInterrupts and ResumeAllInterrupts. So this test does not conform to OSEK/VDX either.