New pattern for implementation of hierarchical state machines in the c language, optimized for minimal execution time on microcontrollers | IEEE Conference Publication | IEEE Xplore