Skip to content

Commit 7c3f4d7

Browse files
playfulFencexobs
authored andcommitted
adding esp32p4 support
1 parent e36f4da commit 7c3f4d7

File tree

7 files changed

+604
-2
lines changed

7 files changed

+604
-2
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ esp32c5 = "build --release --features esp32c5 --target riscv32imac-unknown-none-
88
esp32c6 = "build --release --features esp32c6 --target riscv32imac-unknown-none-elf"
99
esp32c61 = "build --release --features esp32c61 --target riscv32imac-unknown-none-elf"
1010
esp32h2 = "build --release --features esp32h2 --target riscv32imac-unknown-none-elf"
11+
esp32p4 = "build --release --features esp32p4 --target riscv32imafc-unknown-none-elf"
1112

1213
[target.'cfg(target_arch = "riscv32")']
1314
rustflags = [

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ esp32c5 = []
2222
esp32c6 = []
2323
esp32c61 = []
2424
esp32h2 = []
25+
esp32p4 = []
2526

2627
# use max CPU frequency
2728
max-cpu-frequency = []

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ fn main() {
2626
let chip = "esp32c61";
2727
#[cfg(feature = "esp32h2")]
2828
let chip = "esp32h2";
29+
#[cfg(feature = "esp32p4")]
30+
let chip = "esp32p4";
2931

3032
{
3133
fs::copy(

0 commit comments

Comments
 (0)