Combining Zephyr & C++20 to Build Safe, Low-footprint, Event-based Applicati...
summary
Zephyr plus C++20 produce an event-based framework that avoids heap allocations, maps events to irq/workqueue/thread contexts, and compiles down small: notify paths are about 30 instructions and example listeners are ~16–36 bytes; a demo charger runs in ~16 kB RAM with GPIO timers, relays, Modbus and hierarchical state machines. Asynchronous delivery uses a ring buffer plus Zephyr workqueue (event stream queue), and synchronous delivery unrolls subscriber calls at compile time.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 0:10How you reacted
- 0:44What is your main contribution
- 1:42Eventbased architecture
- 2:41C code
- 3:17Smart TV charger
- 5:42Main loop
- 6:43Main loop logic
- 7:17Threaded loops
- 9:23Eventbased
- 10:53Eventbased lm
- 11:51Conclusion
- 12:38Implementation
- 16:28Example
- 20:11Summary
- 21:22Questions
related talks
15mLightning Talk: A Reusable Zbus Based Architecture, Abstracting Core Application Components
42mInter Process Confusion - Navigating Zephyr's IPC APIs
15mA Reusable Zbus Based Architecture, Abstracting Core Application...
01h 31mTutorial: Zbus - the Lightweight & Flexible Zephyr Message Bus
45mUsing the Thrift RPC Framework in Zephyr
35mBoosting Product Development With the Zephyr RTOS – a Critical Reflection
16mKeynote: The Rise of Frameworks in Zephyr: From Devices to Subsystems to Frameworks
41mFuture of Zephyr Device Model
