[<<][c][>>][..]
Thu Jul 25 17:41:39 EDT 2013

Connecting state machines

After a couple of years in RTOS land, I find myself writing
non-trivial code for a bare-bones uC.  Non-trivial in the sense that
the problem would normally be solved using a couple of communicating
tasks.  I am resorting to state machines, triggered essentially from
interrupts.

State machines are a pain to write from a C code pov, but they do
allow a more straightforward handling of atomicity.  It might actually
be worth the hassle.

Mutual exclusion would then in essence be handled by setting a single
priority interrupt routine.




[Reply][About]
[<<][c][>>][..]