-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting on RTIC version of loopback-fw.
Currently it operates a USB Serial port.
- Loading branch information
1 parent
ff4df13
commit 9d7a18a
Showing
8 changed files
with
847 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ hal = { package = "nrf52840-hal", version = "0.18.0" } | |
[features] | ||
advanced = [] | ||
radio = [] | ||
usbd = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[target.thumbv7em-none-eabihf] | ||
# set custom cargo runner to flash & run on embedded target when we call `cargo run` | ||
# for more information, check out https://github.com/probe-rs | ||
runner = [ | ||
"probe-rs", | ||
"run", | ||
"--chip", | ||
"nRF52840_xxAA", | ||
"--allow-erase-all", | ||
"--log-format", | ||
"{t} {[{L}]%bold} {s} {({c:bold} {fff}:{l:1})%dimmed}" | ||
] | ||
# Or use "{[{L}]%bold} {s} {({c:bold} {fff}:{l:1})%dimmed}" to disable timestamps | ||
|
||
linker = "flip-link" # adds stack overflow protection | ||
rustflags = [ | ||
"-C", "link-arg=-Tlink.x", # use the cortex-m-rt linker script | ||
"-C", "link-arg=-Tdefmt.x", # defmt support | ||
] | ||
|
||
[build] | ||
# cross-compile to this target | ||
target = "thumbv7em-none-eabihf" # = ARM Cortex-M4 with FPU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target |
Oops, something went wrong.