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

Updated code to regz rewrite and added fix for i2c on ATmega328P #125

Merged
merged 4 commits into from
Apr 25, 2023
Merged

Updated code to regz rewrite and added fix for i2c on ATmega328P #125

merged 4 commits into from
Apr 25, 2023

Conversation

PhilippWendel
Copy link
Contributor

Mostly changes to imports/variables that changed.

The i2c fix prevents the controller form hanging/crash when running this line
const i2c = try interfaces.i2c.I2CController(0, .{}).init(.{ .target_speed = 400_000 });.
I think this is caused because the struct that is returned contains just functions so it has size 0 and clangs avr code gen cant handle that properly.

@mattnite mattnite merged commit 658648b into ZigEmbeddedGroup:main Apr 25, 2023
marnix added a commit to marnix/microzig that referenced this pull request Oct 28, 2023
This slightly generalizes the earlier commit 2852e56
from ZigEmbeddedGroup#125.
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

2 participants