Try Embedded

2.2 C for hardware

Talking to peripherals through registers, what volatile and const promise, the preprocessor, callbacks and dispatch tables, data structures on static memory,…

Lessons

Project: Smart LED lamp

A Wi-Fi lamp, written the way firmware for hardware is written: pins configured through register fields, helper macros that cannot bite, effects in a table of function pointers, an event log in a ring buffer, and fades in fixed-point arithmetic.

Before this module