Skip to content

Commit

Permalink
Correct chip comments and assignments to targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Sep 13, 2023
1 parent 2d0d571 commit f21dca9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build/native/cargo_driver/chip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ pub enum Chip {
#[strum(serialize = "esp32s3")]
ESP32S3,
/// RISC-V based single core
#[strum(serialize = "esp32c3")]
ESP32C3,
/// RISC-V based single core
#[strum(serialize = "esp32c2")]
ESP32C2,
/// RISC-V based single core
#[strum(serialize = "esp32c3")]
ESP32C3,
/// RISC-V based single core with atomics support
#[strum(serialize = "esp32h2")]
ESP32H2,
/// RISC-V based single core
/// RISC-V based single core with atomics support
#[strum(serialize = "esp32c5")]
ESP32C5,
/// RISC-V based single core with atomics support
Expand All @@ -43,10 +43,10 @@ impl Chip {
"xtensa-esp32-espidf" => &[Chip::ESP32],
"xtensa-esp32s2-espidf" => &[Chip::ESP32S2],
"xtensa-esp32s3-espidf" => &[Chip::ESP32S3],
"riscv32imc-esp-espidf" => {
&[Chip::ESP32C3, Chip::ESP32C2, Chip::ESP32H2, Chip::ESP32C5]
"riscv32imc-esp-espidf" => &[Chip::ESP32C2, Chip::ESP32C3],
"riscv32imac-esp-espidf" => {
&[Chip::ESP32H2, Chip::ESP32C5, Chip::ESP32C6, Chip::ESP32P4]
}
"riscv32imac-esp-espidf" => &[Chip::ESP32C6, Chip::ESP32P4],
_ => bail!("Unsupported target '{}'", rust_target_triple),
};

Expand All @@ -63,8 +63,8 @@ impl Chip {
Self::ESP32 => "xtensa-esp32-elf",
Self::ESP32S2 => "xtensa-esp32s2-elf",
Self::ESP32S3 => "xtensa-esp32s3-elf",
Self::ESP32C3
| Self::ESP32C2
Self::ESP32C2
| Self::ESP32C3
| Self::ESP32H2
| Self::ESP32C5
| Self::ESP32C6
Expand Down

0 comments on commit f21dca9

Please sign in to comment.