From 8a7588199350470def85e69c9d22d4f4ea1aa880 Mon Sep 17 00:00:00 2001 From: Sean Aye Date: Tue, 16 May 2023 08:49:50 -0400 Subject: [PATCH 1/3] add esp32c6 --- cargo/cargo-generate.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cargo/cargo-generate.toml b/cargo/cargo-generate.toml index 5c2bf48..2ed6e22 100644 --- a/cargo/cargo-generate.toml +++ b/cargo/cargo-generate.toml @@ -8,7 +8,7 @@ pre = ["pre-script.rhai"] [placeholders.mcu] type = "string" prompt = "Which MCU to target?" -choices = ["esp32", "esp32c3", "esp32s2", "esp32s3"] +choices = ["esp32", "esp32c3", "esp32s2", "esp32s3", "esp32c6"] default = "esp32" [placeholders.defaults] From cb74b612861cfb216f170297d0ab11c1ce3f7f4d Mon Sep 17 00:00:00 2001 From: Sean Aye Date: Tue, 16 May 2023 08:52:51 -0400 Subject: [PATCH 2/3] Add more boards --- cargo/cargo-generate.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cargo/cargo-generate.toml b/cargo/cargo-generate.toml index 2ed6e22..d9b6fa8 100644 --- a/cargo/cargo-generate.toml +++ b/cargo/cargo-generate.toml @@ -8,7 +8,7 @@ pre = ["pre-script.rhai"] [placeholders.mcu] type = "string" prompt = "Which MCU to target?" -choices = ["esp32", "esp32c3", "esp32s2", "esp32s3", "esp32c6"] +choices = ["esp32", "esp32c3", "esp32s2", "esp32s3", "esp32c6", "esp32c2", "esp32h2"] default = "esp32" [placeholders.defaults] From c40ad9e63d95e2da29c93917afff5684f07f8fb4 Mon Sep 17 00:00:00 2001 From: Sean Aye Date: Tue, 16 May 2023 09:16:01 -0400 Subject: [PATCH 3/3] add boards to rhai script --- cargo/pre-script.rhai | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/cargo/pre-script.rhai b/cargo/pre-script.rhai index 55ab0a9..1578edb 100644 --- a/cargo/pre-script.rhai +++ b/cargo/pre-script.rhai @@ -23,6 +23,24 @@ let targets = #{ gcc_target: "riscv32-esp-elf", wokwi_board: "board-esp32-c3-devkitm-1", }, + esp32c6: #{ + arch: "riscv", + rust_target: "riscv32imc-esp-espidf", + gcc_target: "risvc32-esp-elf", + wokwi_board: "board-esp32-c6-devkitm-1", + }, + esp32c2: #{ + arch: "riscv", + rust_target: "riscv32imc-esp-espidf", + gcc_target: "risvc32-esp-elf", + wokwi_board: "board-esp32-c6-devkitm-1", + }, + esp32h2: #{ + arch: "riscv", + rust_target: "riscv32imc-esp-espidf", + gcc_target: "risvc32-esp-elf", + wokwi_board: "board-esp32-c6-devkitm-1", + } }; let target = variable::get("mcu");