zig-bare-metal-microbit
zig-bare-metal-microbit copied to clipboard
Packed structs
You should use packed structs for mmio instead of normal structs, since normal structs don't have a in-memory defined layout and the compiler is allowed to change the order of fields for performance or other reasons. Packed structs will always have the correct layout as specified.