Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit a7f68f4

Browse files
authored
Merge pull request #45 from rust-embedded/generate
[RFC] move to cargo-generate; start with QEMU
2 parents 8a8466a + cffc158 commit a7f68f4

37 files changed

+231
-1903
lines changed

.cargo/config

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
[target.thumbv7m-none-eabi]
2+
# uncomment this to make `cargo run` execute programs on QEMU
3+
# runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel"
4+
15
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2-
# runner = 'arm-none-eabi-gdb -x debug.gdb'
6+
# uncomment ONE of these three option to make `cargo run` start a GDB session
7+
# which option to pick depends on your system
8+
# runner = "arm-none-eabi-gdb -q -x openocd.gdb"
9+
# runner = "gdb-multiarch -q -x openocd.gdb"
10+
# runner = "gdb -q -x openocd.gdb"
11+
312
rustflags = [
413
# LLD (shipped with the Rust toolchain) is used as the default linker
514
"-C", "link-arg=-Tlink.x",
@@ -16,23 +25,9 @@ rustflags = [
1625
# "-C", "link-arg=-nostartfiles",
1726
]
1827

19-
# work around rust-lang/cargo#5946
20-
[target.thumbv6m-none-eabi]
21-
runner = 'arm-none-eabi-gdb -x debug.gdb'
22-
23-
[target.thumbv7m-none-eabi]
24-
runner = 'arm-none-eabi-gdb -x debug.gdb'
25-
26-
[target.thumbv7em-none-eabi]
27-
runner = 'arm-none-eabi-gdb -x debug.gdb'
28-
29-
[target.thumbv7em-none-eabihf]
30-
runner = 'arm-none-eabi-gdb -x debug.gdb'
31-
# end of workaround
32-
3328
[build]
34-
# Pick one of these compilation targets
29+
# Pick ONE of these compilation targets
3530
# target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
36-
# target = "thumbv7m-none-eabi" # Cortex-M3
31+
target = "thumbv7m-none-eabi" # Cortex-M3
3732
# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
38-
# target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
33+
# target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/bors.toml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 222 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)