svd2zig
svd2zig copied to clipboard
Generate Zig API from SVD register definitions.
When trying to write to a register, I'm getting a size mismatch. ```zig HW.tim3.cr1.write(.{ .cen = .enabled }); ``` gives the error: ``` ./src/hw/stm32f0x0.zig:29:39: error: destination type 'u32' has size...
Some arm processors expose [bit-banding](https://developer.arm.com/documentation/ddi0337/h/programmers-model/bit-banding) to read/write bits of peripheral registers. This provides more efficient access when reading/writing a single bit in a register It would be convenient to expose...
Handle cases where `` is declared inside `` rather than as a direct child of `` For example the stm32f103 SVD has registers like this: https://www.st.com/resource/en/svd/stm32f1_svd.zip ``` ... RCC CR...