I'm trying to implement some state machine like behaviour and would like to use a timer to trigger an upcoming state.
I just want to wait for some time and then trigger an event for one specific thread (no broadcast).
Since evereything else is done in C++, I would prefer to use the provided C++ class chibios_rt::Timer.
Unfortunately, all member function of that class are I-Class API functions and I can't get them to work.
If I don't use chSysLock() and chSysUnlock() I get the SV#10 error (misplaced I-class function) as expected.
But when I try to lock the system via chSysLock() I get the SV#4 error (misplaced chSysLock()).
Since I can't find any example on the net how to use the Timer class, maybe someone of you can provide some help
Thanks in advance!
Thargon