Skip to content

Make Peripherals non-exhaustive and improve its docs #193

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 3 commits into from
Mar 1, 2020
Merged

Make Peripherals non-exhaustive and improve its docs #193

merged 3 commits into from
Mar 1, 2020

Conversation

jonas-schievink
Copy link
Contributor

@jonas-schievink jonas-schievink commented Jan 16, 2020

This means that it's no longer a breaking change to add fields to it, which is important since Arm is likely to add more in upcoming architectures. They could also add extensions that add peripherals.

@rust-highfive
Copy link

r? @ithinuel

(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-cortex-m labels Jan 16, 2020
@hug-dev
Copy link
Contributor

hug-dev commented Feb 28, 2020

I am in favor of this as it would probably remove the breaking-change label on #180!

Copy link
Contributor

@therealprof therealprof left a comment

Choose a reason for hiding this comment

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

Good idea.

@therealprof
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Feb 28, 2020
193: Make `Peripherals` non-exhaustive and improve its docs r=therealprof a=jonas-schievink

This means that it's no longer a breaking change to add fields to it, which is important since Arm is likely to add more in upcoming architectures. They could also add extensions that add peripherals.

Co-authored-by: Jonas Schievink <[email protected]>
@bors
Copy link
Contributor

bors bot commented Feb 28, 2020

Build failed

@therealprof
Copy link
Contributor

Build failure is unrelated to the change but I guess we need to address this:

error: unnecessary parentheses around assigned value
269   --> src/peripheral/scb.rs:308:38
270    |
271308 |     pub const SCB_CCR_IC_MASK: u32 = (1 << 17);
272    |                                      ^^^^^^^^^ help: remove these parentheses
273    |
274    = note: `-D unused-parens` implied by `-D warnings`

bors bot added a commit that referenced this pull request Mar 1, 2020
198: Remove unnecessary parenthesis r=jonas-schievink a=hug-dev

Otherwise Cargo complains!

This should fix the CI for #193 and #189 

Co-authored-by: Hugues de Valon <[email protected]>
@thejpster
Copy link
Contributor

bors retry

bors bot added a commit that referenced this pull request Mar 1, 2020
193: Make `Peripherals` non-exhaustive and improve its docs r=therealprof a=jonas-schievink

This means that it's no longer a breaking change to add fields to it, which is important since Arm is likely to add more in upcoming architectures. They could also add extensions that add peripherals.

Co-authored-by: Jonas Schievink <[email protected]>
@bors
Copy link
Contributor

bors bot commented Mar 1, 2020

Build failed

bors bot added a commit that referenced this pull request Mar 1, 2020
198: Remove unnecessary parenthesis r=jonas-schievink a=hug-dev

Otherwise Cargo complains!

This should fix the CI for #193 and #189 

Co-authored-by: Hugues de Valon <[email protected]>
@jonas-schievink
Copy link
Contributor Author

bors retry

@bors
Copy link
Contributor

bors bot commented Mar 1, 2020

Build succeeded

@bors bors bot merged commit 72befe4 into rust-embedded:master Mar 1, 2020
@jonas-schievink jonas-schievink deleted the periph branch March 1, 2020 17:43
@adamgreig adamgreig mentioned this pull request Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-cortex-m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants