-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove atomics usage to follow qingke recent changes (#10)
- Loading branch information
1 parent
92d4b78
commit cec07b8
Showing
6 changed files
with
42 additions
and
18 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,15 +1,16 @@ | ||
{% if mcu_family == "ch32v003" or mcu_family == "ch641" -%} | ||
[build] | ||
{% if target == "riscv32ec-unknown-none-elf" -%} | ||
target = "riscv32ec-unknown-none-elf.json" | ||
{%- elsif target == "riscv32imfc-unknown-none-elf" -%} | ||
target = "riscv32imfc-unknown-none-elf.json" | ||
{%- else -%} | ||
[build] | ||
target = "{{ target }}" | ||
{%- endif %} | ||
|
||
[target."{{ target }}"] | ||
runner = "wlink -v flash --enable-sdi-print --watch-serial" | ||
|
||
{% if mcu_family == "ch32v003" or mcu_family == "ch641" -%} | ||
{% if target == "riscv32ec-unknown-none-elf" or target == "riscv32imfc-unknown-none-elf" -%} | ||
[unstable] | ||
build-std = ["core"] | ||
{% endif %} | ||
{% endif -%} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"arch": "riscv32", | ||
"atomic-cas": false, | ||
"cpu": "generic-rv32", | ||
"crt-objects-fallback": "false", | ||
"data-layout": "e-m:e-p:32:32-i64:64-n32-S128", | ||
"eh-frame-header": false, | ||
"emit-debug-gdb-scripts": false, | ||
"features": "+m,+f,+c,+forced-atomics", | ||
"is-builtin": false, | ||
"linker": "rust-lld", | ||
"linker-flavor": "gnu-lld", | ||
"llvm-abiname": "ilp32f", | ||
"llvm-target": "riscv32", | ||
"max-atomic-width": 32, | ||
"panic-strategy": "abort", | ||
"relocation-model": "static", | ||
"target-pointer-width": "32" | ||
} |
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,5 +1,5 @@ | ||
[toolchain] | ||
channel = "nightly" | ||
{% if mcu_family != "ch32v003" and mcu_family != "ch641" -%} | ||
{% if target != "riscv32ec-unknown-none-elf" and target != "riscv32imfc-unknown-none-elf" -%} | ||
targets = ["{{ target }}"] | ||
{%- endif %} |