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

parse a resources field in init #2

Merged
merged 1 commit into from
Dec 23, 2017
Merged

parse a resources field in init #2

merged 1 commit into from
Dec 23, 2017

Conversation

japaric
Copy link
Collaborator

@japaric japaric commented Nov 21, 2017

required for japaric/cortex-m-rtfm#50

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 japaric changed the title [WIP] parse a resources field in init parse a resources field in init Dec 23, 2017
@japaric japaric merged commit 1570f53 into master Dec 23, 2017
@japaric japaric deleted the init-resources branch December 23, 2017 10:13
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.

1 participant