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

turn peripherals into scoped singletons #65

Merged
merged 4 commits into from
Dec 9, 2017
Merged

turn peripherals into scoped singletons #65

merged 4 commits into from
Dec 9, 2017

Conversation

japaric
Copy link
Member

@japaric japaric commented Nov 21, 2017

See this RFC for details: rust-embedded/svd2rust#157

@japaric japaric changed the title [WIP] turn peripherals into scoped singletons turn peripherals into scoped singletons Dec 9, 2017
@japaric
Copy link
Member Author

japaric commented Dec 9, 2017

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 9bab417 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 9bab417 with merge e5c7f14...

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
Copy link
Contributor

💔 Test failed - status-travis

@japaric
Copy link
Member Author

japaric commented Dec 9, 2017

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit b7a627c has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit b7a627c with merge 5c75a4e...

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
@japaric
Copy link
Member Author

japaric commented Dec 9, 2017

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 0b45ea4 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 0b45ea4 with merge ce5bee6...

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
Copy link
Contributor

💔 Test failed - status-travis

@homunkulus
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: japaric
Pushing ce5bee6 to master...

@homunkulus homunkulus merged commit 0b45ea4 into master Dec 9, 2017
@homunkulus homunkulus mentioned this pull request Dec 9, 2017
@japaric japaric deleted the singletons branch December 9, 2017 10:11
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}`
adamgreig pushed a commit that referenced this pull request Jan 12, 2022
support the newest nightly
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.

None yet

2 participants