CUTEHSM – An Efficient Hierarchical State Machine in C

CUTEHSM - An Efficient Hierarchical State Machine in C

Why Do We Need an Elegant Hierarchical State Machine? Traditional State Machine Implementation: // Traditional implementation: 4 function pointers + complex state transition logic typedef struct { void (*entry)(); void (*exit)(); void (*work)(); void (*event)(); // … more function pointers } TraditionalState; This design not only leads to code redundancy but also has a rigid … Read more

QP/C: An Event-Driven Framework Designed for Real-Time Embedded Systems

QP/C: An Event-Driven Framework Designed for Real-Time Embedded Systems

As an embedded developer, do you have a love-hate relationship with bare-metal programming? Are you overwhelmed by interrupts and questioning your life while writing state machines? Let’s get to know QP/C: a lightweight asynchronous event framework that transforms MCUs into “thinking” entities, allowing you to elegantly manage complex logic and say goodbye to “interrupt hell”! … Read more