Skip to content

Commit 854e8c4

Browse files
authored
Merge pull request #13 from FKMTime/new-rust-firmware
New rust firmware
2 parents 3a22ba6 + 2193031 commit 854e8c4

31 files changed

+4737
-77
lines changed

.cargo/config.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[target.riscv32imc-unknown-none-elf]
2+
runner = "espflash flash --monitor -T ./partitions.csv --erase-parts otadata"
3+
4+
[env]
5+
ESP_LOG="INFO"
6+
7+
[build]
8+
rustflags = [
9+
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
10+
# NOTE: May negatively impact performance of produced code
11+
"-C", "force-frame-pointers",
12+
]
13+
14+
target = "riscv32imc-unknown-none-elf"
15+
16+
[unstable]
17+
build-std = ["alloc", "core"]

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.env
22
act
33
build
4+
5+
debug/
6+
target/
7+
**/*.rs.bk
8+
*.pdb

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rust-analyzer.check.allTargets": false,
3+
}

0 commit comments

Comments
 (0)