Thinking about HSMs[1]
Thinking about HSMs[1]

The current "flat" implementation is exploding in low-semantic-density
code every time I add a state or event.  HSM might be able to solve
that, provided I can wrap my head around how it should work.

This link helps:
http://www.barrgroup.com/Embedded-Systems/How-To/Introduction-Hierarchical-State-Machines

hoosierEE/wim,hoosierEE/wim