Skip to content

Commit 2ebe84d

Browse files
committed
feat(esp32c3/example): added async uart example for esp32c3
Signed-off-by: Jad K. Haddad <jadkhaddad@gmail.com>
1 parent 4a19caa commit 2ebe84d

File tree

13 files changed

+1548
-0
lines changed

13 files changed

+1548
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[target.riscv32imc-unknown-none-elf]
2+
runner = "espflash flash --monitor --chip esp32c3"
3+
4+
[env]
5+
6+
[build]
7+
rustflags = [
8+
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
9+
# NOTE: May negatively impact performance of produced code
10+
"-C", "force-frame-pointers",
11+
]
12+
13+
target = "riscv32imc-unknown-none-elf"
14+
15+
[unstable]
16+
build-std = ["core"]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# will have compiled files and executables
2+
debug/
3+
target/
4+
.zed/
5+
.helix/
6+
7+
# These are backup files generated by rustfmt
8+
**/*.rs.bk
9+
10+
# MSVC Windows builds of rustc generate these, which store debugging information
11+
*.pdb
12+
13+
# RustRover
14+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
15+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
16+
# and can be added to the global gitignore or merged into this file. For a more nuclear
17+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
18+
#.idea/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"rust-lang.rust-analyzer",
4+
"tamasfe.even-better-toml",
5+
"fill-labs.dependi"
6+
]
7+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
]
5+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"rust-analyzer.cargo.allTargets": false,
3+
"rust-analyzer.cargo.target": "riscv32imc-unknown-none-elf",
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build-debug",
6+
"command": "cargo build",
7+
"type": "shell",
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)