Skip to content

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

Merged
merged 2 commits into from
Jan 1, 2020
Merged

Conversation

therealprof
Copy link
Contributor

No description provided.

@therealprof therealprof requested a review from a team as a code owner January 1, 2020 11:23
@rust-highfive
Copy link

r? @Disasm

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools labels Jan 1, 2020
@therealprof
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request Jan 1, 2020
@bors
Copy link
Contributor

bors bot commented Jan 1, 2020

try

Build failed

fields,
parent,
all_registers,
peripheral,
all_peripherals,
)?;

let pc_r = &f.pc_r;
let mut pc_w = &f.pc_r;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's important!

Copy link
Contributor Author

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.

Copy link
Member

@burrbull burrbull Jan 1, 2020

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;
Copy link
Member

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>
@therealprof therealprof force-pushed the simplify-register-generation-code branch from b4972d0 to 004a68f Compare January 1, 2020 12:09
@therealprof
Copy link
Contributor Author

Thanks for the explanation. I added a comment to that effect.

@therealprof
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request Jan 1, 2020
@bors
Copy link
Contributor

bors bot commented Jan 1, 2020

try

Build succeeded

And happy new year from bors! 🎉

@burrbull
Copy link
Member

burrbull commented Jan 1, 2020

bors r+

bors bot added a commit that referenced this pull request Jan 1, 2020
412: Simplify register generation code r=burrbull a=therealprof



Co-authored-by: Daniel Egger <daniel@eggers-club.de>
@bors
Copy link
Contributor

bors bot commented Jan 1, 2020

Build succeeded

And happy new year from bors! 🎉

@bors bors bot merged commit 004a68f into master Jan 1, 2020
@bors bors bot deleted the simplify-register-generation-code branch January 1, 2020 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants