Skip to content

Commit b1707a9

Browse files
committed
button example from stm32f3discovery crate
0 parents  commit b1707a9

File tree

8 files changed

+434
-0
lines changed

8 files changed

+434
-0
lines changed

.cargo/config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[target.thumbv7em-none-eabihf]
2+
runner = "arm-none-eabi-gdb -q -x openocd.gdb"
3+
rustflags = [
4+
"-C", "link-arg=-Tlink.x",
5+
]
6+
7+
[build]
8+
target = "thumbv7em-none-eabihf"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"rust.target": "thumbv7em-none-eabihf",
3+
"rust.all_targets": false
4+
}

Cargo.lock

Lines changed: 326 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[workspace]
2+
members = [
3+
"src/button",
4+
]
5+
6+
[profile.release]
7+
codegen-units = 1
8+
debug = true
9+
lto = true

openocd.gdb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target remote :3333
2+
load
3+
break main
4+
continue

src/button/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "button"
3+
version = "0.1.0"
4+
authors = ["Thierry Berger <[email protected]>"]
5+
edition = "2018"
6+
7+
[dependencies]
8+
stm32f3-discovery = "*"
9+
cortex-m = "0.6.2"
10+
cortex-m-rt = "0.6.12"
11+
panic-halt = "0.2.0"

0 commit comments

Comments
 (0)