-
- Downloads
Auto merge of #50 - japaric:singletons, r=japaric
Peripherals as scoped singletons See this RFC for details: japaric/svd2rust#157 - The first commit adapts this crate to the changes in japaric/cortex-m#65 and japaric/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 japaric/rtfm-syntax#2~~ postponed
Showing
- Cargo.toml 5 additions, 4 deletionsCargo.toml
- examples/generics.rs 11 additions, 1 deletionexamples/generics.rs
- examples/one-task.rs 21 additions, 13 deletionsexamples/one-task.rs
- examples/zero-tasks.rs 3 additions, 2 deletionsexamples/zero-tasks.rs
- macros/src/check.rs 14 additions, 4 deletionsmacros/src/check.rs
- macros/src/trans.rs 121 additions, 208 deletionsmacros/src/trans.rs
- src/lib.rs 1 addition, 1 deletionsrc/lib.rs
... | @@ -10,13 +10,13 @@ keywords = ["arm", "cortex-m"] | ... | @@ -10,13 +10,13 @@ keywords = ["arm", "cortex-m"] |
license = "MIT OR Apache-2.0" | license = "MIT OR Apache-2.0" | ||
name = "cortex-m-rtfm" | name = "cortex-m-rtfm" | ||
repository = "https://github.com/japaric/cortex-m-rtfm" | repository = "https://github.com/japaric/cortex-m-rtfm" | ||
version = "0.2.2" | version = "0.3.0" | ||
[dependencies] | [dependencies] | ||
cortex-m = "0.3.1" | cortex-m = { git = "https://github.com/japaric/cortex-m" } | ||
untagged-option = "0.1.1" | untagged-option = "0.1.1" | ||
rtfm-core = "0.1.0" | rtfm-core = "0.1.0" | ||
cortex-m-rtfm-macros = "0.2.1" | cortex-m-rtfm-macros = { path = "macros" } | ||
[target.'cfg(target_arch = "x86_64")'.dev-dependencies] | [target.'cfg(target_arch = "x86_64")'.dev-dependencies] | ||
compiletest_rs = "0.3.3" | compiletest_rs = "0.3.3" | ||
... | @@ -27,7 +27,8 @@ version = "0.3.3" | ... | @@ -27,7 +27,8 @@ version = "0.3.3" |
[dev-dependencies.stm32f103xx] | [dev-dependencies.stm32f103xx] | ||
features = ["rt"] | features = ["rt"] | ||
version = "0.7.5" | git = "https://github.com/japaric/stm32f103xx" | ||
# version = "0.8.0" | |||
[profile.release] | [profile.release] | ||
lto = true | lto = true |
Please register or sign in to comment