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

Fix mmio toggle #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix mmio toggle #157

wants to merge 1 commit into from

Conversation

akiroz
Copy link

@akiroz akiroz commented Nov 13, 2023

In zig 0.11.0, struct field default_value always returns an opaque pointer which can't be used in @tagName.
I'm not entirely sure how the original API worked but this implementation allows selective toggling of bits in each field of registers via a xor mask:

REG.toggle(.{ .FIELD = MASK });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant