regz icon indicating copy to clipboard operation
regz copied to clipboard

Generate zig code from ATDF or SVD files for microcontrollers.

Results 27 regz issues
Sort by recently updated
recently updated
newest added

We should be able to emit a well-formatted C++ header from regz so we can also support users to have C code in their project that can access registers. Imho,...

We should be able to emit a well-formatted C header from regz so we can also support users to have C code in their project that can access registers.

This CL adds support to build regz with the latest zig nightlies. Zig renamed a few fields and made the compiler a bit more restrictive around constants and comptime.

See this code: ```zig extern var __microzig_end_of_stack: anyopaque; const Table = extern struct { initial_stack_pointer: *anyopaque, reset: *const fn() callconv(.C) void, nmi: *const fn() callconv(.C) void, }; export const vector_table:...

enhancement

Trying to build with zig 0.8.0: ``` ./build.zig:18:30: error: container 'std.build' has no member called 'OptionsStep' build_options: *std.build.OptionsStep, ^ ./build.zig:96:22: note: referenced here const regz = Regz.create(b, .{ ^ /home/pi/tools/zig-linux-x86_64-0.8.0/lib/std/special/build_runner.zig:158:24:...

For ATmega3208, there are instances of registers with duplicated names. This is because the same register has different fields for different modes. Instead of representing this as variants of a...

bug

Recently, have started some tests with `regz` using some SVD's such as gd32v (which does not yet have cluster support), esp32-c3 and now [allwinner D1 (unofficial svd)](https://github.com/duskmoon314/aw-pac/tree/main/svd). However an error...

bug
good first issue

I tried to use regz to convert a svg for an STM32F103 and stumbled over the following problems: The compiler complains ``` /home/stefan/workspace/stm32f103rb-test/src/registers.zig:31630:5: error: extern unions cannot contain fields of...

**Generated file:** https://gist.github.com/kassane/41d57372dfb16a1bf686da5e2107547e **SVD:** [CEC1702.svd.tar.gz](https://github.com/ZigEmbeddedGroup/regz/files/9551124/CEC1702.svd.tar.gz) **Output:** ```bash $> regz -s svd Microchip.CEC_DFP.1.5.142/cec1702/svd/CEC1702.svd -o CEC1702.zig warning: field 'WR_CNT' (16-24) in register is outside word size: 16 warning: field 'RD_CNT' (24-32) in...