-
Notifications
You must be signed in to change notification settings - Fork 156
Simplify register generation code #412
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
Conversation
r? @Disasm (rust_highfive has picked a reviewer for you, use r? to override) |
bors try |
tryBuild failed |
fields, | ||
parent, | ||
all_registers, | ||
peripheral, | ||
all_peripherals, | ||
)?; | ||
|
||
let pc_r = &f.pc_r; | ||
let mut pc_w = &f.pc_r; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's important!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's kind of hard to see without any comments in the code. ;) I'll have a look at the build results and try to incorporate it in my tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reader and writer must use one common Enum_A
unless field have two enumeratedValues
: one for read-only
and other for write-only
(Enum_AW
).
unsafety = None; | ||
} | ||
|
||
if Some(evs) != evs_r.as_ref() { | ||
pc_w = &f.pc_w; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this.
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
b4972d0
to
004a68f
Compare
Thanks for the explanation. I added a comment to that effect. |
bors try |
tryBuild succeededAnd happy new year from bors! 🎉 |
bors r+ |
Build succeededAnd happy new year from bors! 🎉 |
No description provided.