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

Imxrt ral repr c #17

Merged
merged 1 commit into from
Mar 4, 2020
Merged

Imxrt ral repr c #17

merged 1 commit into from
Mar 4, 2020

Conversation

teburd
Copy link
Member

@teburd teburd commented Mar 2, 2020

Adds #[repr(C)] to RegisterBlock structs to ensure memory alignment

Based on #16
Fixes #13

Without repr(C) the fields may be re-ordered and alignment is
whatever rustc decides is best. repr(C) enforced field ordering
and C alignment rules.

Fixes #13
@teburd teburd merged commit beb50dd into master Mar 4, 2020
@teburd teburd deleted the imxrt-ral-repr-c branch March 4, 2020 04:36
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.

RegisterBlocks are not #[repr(C)]
1 participant