-
- Downloads
serial wip
... | @@ -5,9 +5,8 @@ readme = "README.md" | ... | @@ -5,9 +5,8 @@ readme = "README.md" |
name = "app" | name = "app" | ||
version = "0.1.0" | version = "0.1.0" | ||
[dependencies.cortex-m] | [patch.crates-io] | ||
version = "0.5.8" | stm32f4xx-hal = { path = "../stm32f4xx-hal" } | ||
features = ["inline-asm"] # <- currently requires nightly compiler | |||
[dependencies] | [dependencies] | ||
cortex-m-rt = "0.6.7" | cortex-m-rt = "0.6.7" | ||
... | @@ -18,6 +17,11 @@ panic-halt = "0.2.0" | ... | @@ -18,6 +17,11 @@ panic-halt = "0.2.0" |
panic-semihosting = "0.5.1" | panic-semihosting = "0.5.1" | ||
panic-itm = "0.4.0" | panic-itm = "0.4.0" | ||
bare-metal = "0.2.4" | bare-metal = "0.2.4" | ||
nb = "0.1.1" | |||
[dependencies.cortex-m] | |||
version = "0.5.8" | |||
features = ["inline-asm"] # <- currently requires nightly compiler | |||
# Uncomment for the allocator example. | # Uncomment for the allocator example. | ||
# alloc-cortex-m = "0.3.5" | # alloc-cortex-m = "0.3.5" | ||
... | @@ -25,11 +29,12 @@ bare-metal = "0.2.4" | ... | @@ -25,11 +29,12 @@ bare-metal = "0.2.4" |
[dependencies.stm32f4] | [dependencies.stm32f4] | ||
version = "0.5.0" | version = "0.5.0" | ||
features = ["stm32f411", "rt"] | features = ["stm32f411", "rt"] | ||
optional = true | # optional = true | ||
[dependencies.stm32f4xx-hal] | |||
version = "0.2.8" | |||
features = ["stm32f411", "rt"] | |||
[[example]] | |||
name = "device" | |||
required-features = ["stm32f4"] | |||
# this lets you use `cargo fix`! | # this lets you use `cargo fix`! | ||
[[bin]] | [[bin]] | ||
... | @@ -38,11 +43,12 @@ test = false | ... | @@ -38,11 +43,12 @@ test = false |
bench = false | bench = false | ||
[profile.dev] | [profile.dev] | ||
panic = "abort" | incremental = false | ||
codegen-units = 1 | |||
[profile.release] | [profile.release] | ||
codegen-units = 1 # better optimizations | codegen-units = 1 # better optimizations | ||
debug = true # symbols are nice and they don't increase the size on Flash | debug = true # symbols are nice and they don't increase the size on Flash | ||
lto = true # better optimizations | lto = true # better optimizations | ||
panic = "abort" | |||
examples/serial.rs
0 → 100644
Please register or sign in to comment