smartfsm It's a Finite State Machine architecture to use easily. USER API SET_STATE_DEFAULT_FUNC set default state. state_init set initial state. state_add add state. fsm_while fsm is infinite loop. LICENSE author by Shanjin Yang. MIT.