-
- Downloads
example/device and SVD
Showing
- .vscode/launch.json 32 additions, 0 deletions.vscode/launch.json
- .vscode/tasks.json 12 additions, 0 deletions.vscode/tasks.json
- Cargo.toml 14 additions, 10 deletionsCargo.toml
- README.md 71 additions, 0 deletionsREADME.md
- STM32F413.svd 49411 additions, 0 deletionsSTM32F413.svd
- examples/device.rs 66 additions, 0 deletionsexamples/device.rs
... | @@ -7,12 +7,11 @@ version = "0.1.0" | ... | @@ -7,12 +7,11 @@ version = "0.1.0" |
[dependencies] | [dependencies] | ||
cortex-m = "0.5.8" | cortex-m = "0.5.8" | ||
cortex-m-rt = "0.6.5" | cortex-m-rt = "0.6.7" | ||
cortex-m-semihosting = "0.3.2" | cortex-m-semihosting = "0.3.2" | ||
panic-halt = "0.2.0" | panic-halt = "0.2.0" | ||
# panic-abort = "0.3.1" | # panic-abort = "0.3.1" # requires nightly toolchain | ||
# Uncomment for the panic example. | |||
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" | ||
... | @@ -20,10 +19,14 @@ bare-metal = "0.2.4" | ... | @@ -20,10 +19,14 @@ bare-metal = "0.2.4" |
# Uncomment for the allocator example. | # Uncomment for the allocator example. | ||
# alloc-cortex-m = "0.3.5" | # alloc-cortex-m = "0.3.5" | ||
# Uncomment for the device example. | [dependencies.stm32f4] | ||
# [dependencies.stm32f30x] | version = "0.5.0" | ||
# features = ["rt"] | features = ["stm32f411", "rt"] | ||
# version = "0.7.1" | optional = true | ||
[[example]] | |||
name = "device" | |||
required-features = ["stm32f4"] | |||
# this lets you use `cargo fix`! | # this lets you use `cargo fix`! | ||
[[bin]] | [[bin]] | ||
... | @@ -39,3 +42,4 @@ codegen-units = 1 # better optimizations | ... | @@ -39,3 +42,4 @@ 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" | panic = "abort" | ||
STM32F413.svd
0 → 100644
This diff is collapsed.
examples/device.rs
0 → 100644
Please register or sign in to comment