Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZaZiDev opened this issue Feb 16, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ZaZiDev
Copy link

ZaZiDev commented Feb 16, 2025

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.

@ikskuh ikskuh added the bug Something isn't working label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants