A Lock-Free SPSC Ring Buffer for ISR-to-Main-Loop Data in Embedded C
An architecture note on a lock-free single-producer/single-consumer ring buffer for moving data from an ISR to the main loop in embedded C: minimal design, trust boundaries, overflow policy, checks, and failure modes.