This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defmt: add to CI, actually provide
defmt-raw
feature (#49)
* Add defmt-raw * Respect critical section in defmt * Add log drivers to CI
- Loading branch information
Showing
5 changed files
with
90 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,39 @@ | ||
[target.riscv32imc-unknown-none-elf] | ||
runner = "espflash --speed 921600 --monitor" | ||
|
||
rustflags = [ | ||
"-C", "link-arg=-Tlinkall.x", | ||
# comment the cfgs below if you do _not_ wish to emulate atomics. | ||
# enable the atomic codegen option for RISCV | ||
"-C", "target-feature=+a", | ||
# tell the core library have atomics even though it's not specified in the target definition | ||
"--cfg", "target_has_atomic_load_store", | ||
"--cfg", 'target_has_atomic_load_store="8"', | ||
"--cfg", 'target_has_atomic_load_store="16"', | ||
"--cfg", 'target_has_atomic_load_store="32"', | ||
"--cfg", 'target_has_atomic_load_store="ptr"', | ||
# enable cas | ||
"--cfg", "target_has_atomic", | ||
"--cfg", 'target_has_atomic="8"', | ||
"--cfg", 'target_has_atomic="16"', | ||
"--cfg", 'target_has_atomic="32"', | ||
"--cfg", 'target_has_atomic="ptr"', | ||
] | ||
|
||
[target.xtensa-esp32-none-elf] | ||
runner = "espflash --speed 921600 --monitor" | ||
|
||
[target.xtensa-esp32s2-none-elf] | ||
rustflags = [ | ||
"-C", "link-arg=-Tlinkall.x", | ||
# Enable the atomic codegen option for Xtensa | ||
"-C", "target-feature=+s32c1i", | ||
# tell the core library have atomics even though it's not specified in the target definition | ||
"--cfg", "target_has_atomic_load_store", | ||
"--cfg", 'target_has_atomic_load_store="8"', | ||
"--cfg", 'target_has_atomic_load_store="16"', | ||
"--cfg", 'target_has_atomic_load_store="32"', | ||
"--cfg", 'target_has_atomic_load_store="ptr"', | ||
# enable cas | ||
"--cfg", "target_has_atomic", | ||
"--cfg", 'target_has_atomic="8"', | ||
"--cfg", 'target_has_atomic="16"', | ||
"--cfg", 'target_has_atomic="32"', | ||
"--cfg", 'target_has_atomic="ptr"', | ||
] | ||
|
||
[build] | ||
target = "riscv32imc-unknown-none-elf" | ||
|
||
[unstable] | ||
build-std = [ "core" ] |
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
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