-
Notifications
You must be signed in to change notification settings - Fork 157
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
turn peripherals into scoped singletons #65
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Nov 21, 2017
japaric
changed the title
[WIP] turn peripherals into scoped singletons
turn peripherals into scoped singletons
Dec 9, 2017
@homunkulus r+ |
📌 Commit 9bab417 has been approved by |
japaric
pushed a commit
that referenced
this pull request
Dec 9, 2017
turn peripherals into scoped singletons See this RFC for details: rust-embedded/svd2rust#157
💔 Test failed - status-travis |
@homunkulus r+ |
📌 Commit b7a627c has been approved by |
japaric
pushed a commit
that referenced
this pull request
Dec 9, 2017
turn peripherals into scoped singletons See this RFC for details: rust-embedded/svd2rust#157
@homunkulus r+ |
📌 Commit 0b45ea4 has been approved by |
japaric
pushed a commit
that referenced
this pull request
Dec 9, 2017
turn peripherals into scoped singletons See this RFC for details: rust-embedded/svd2rust#157
💔 Test failed - status-travis |
☀️ Test successful - status-travis |
Merged
japaric
pushed a commit
to rust-embedded/svd2rust
that referenced
this pull request
Dec 9, 2017
Peripherals as scoped singletons See this RFC for details: #157 With this change device crates will need to depend on a version of the cortex-m crate that includes rust-embedded/cortex-m#65 ### TODO - [x] accept the RFC - [ ] Check that non cortex-m targets still work - [x] decide on better names for `Peripherals::{all,_all}`
japaric
pushed a commit
to rust-embedded/svd2rust
that referenced
this pull request
Dec 9, 2017
Peripherals as scoped singletons See this RFC for details: #157 With this change device crates will need to depend on a version of the cortex-m crate that includes rust-embedded/cortex-m#65 ### TODO - [x] accept the RFC - [ ] Check that non cortex-m targets still work - [x] decide on better names for `Peripherals::{all,_all}`
japaric
pushed a commit
to rust-embedded/svd2rust
that referenced
this pull request
Dec 9, 2017
Peripherals as scoped singletons See this RFC for details: #157 With this change device crates will need to depend on a version of the cortex-m crate that includes rust-embedded/cortex-m#65 ### TODO - [x] accept the RFC - [ ] Check that non cortex-m targets still work - [x] decide on better names for `Peripherals::{all,_all}`
japaric
pushed a commit
to rtic-rs/rtic
that referenced
this pull request
Dec 9, 2017
Peripherals as scoped singletons See this RFC for details: rust-embedded/svd2rust#157 - The first commit adapts this crate to the changes in rust-embedded/cortex-m#65 and rust-embedded/svd2rust#158 - ~~The second commit is an alternative implementation of RFC #47 (there's another implementation in #49. This second commit is not required for RFC157 but let us experiment with safe DMA abstractions.~~ postponed ### TODO - [x] un-bless peripherals as resources. Peripherals as resources were special cased: if resource listed in e.g. `app.tasks.FOO.resources` didn't appear in `app.resources` then it was assumed to be a peripheral and special code was generated for it. This is no longer required under RFC157. ~~This depends on PR rtic-rs/rtic-syntax#2~~ postponed
japaric
pushed a commit
to rust-embedded/svd2rust
that referenced
this pull request
Dec 9, 2017
Peripherals as scoped singletons See this RFC for details: #157 With this change device crates will need to depend on a version of the cortex-m crate that includes rust-embedded/cortex-m#65 ### TODO - [x] accept the RFC - [ ] Check that non cortex-m targets still work - [x] decide on better names for `Peripherals::{all,_all}`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See this RFC for details: rust-embedded/svd2rust#157