microzig icon indicating copy to clipboard operation
microzig copied to clipboard

Regz generates almost the same code no matter if you use the --microzig option

Open ZaZiDev opened this issue 11 months ago • 0 comments

Hi,

Regz generates almost the same code no matter if i use the --microzig option or not so

./regz --format svd rp.svd > rp.zig generates almost the same code as: ./regz --microzig --format svd rp.svd > rp.zig does

The only differences are that the --microzig option adds an

const micro = @import("microzig");
const mmio = micro.mmio

at the start and without the option it uses

const mmio = @import("mmio");

instead

This leads to undefined identifier "micro" in the generated Zig files without the --microzig option.

ZaZiDev avatar Feb 16 '25 18:02 ZaZiDev