Skip to content

Commit

Permalink
WbX -> Wbx
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos committed Oct 2, 2019
1 parent 7a4f083 commit 6d770b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ pub enum Device {
#[serde(rename = "stm32l4s9")]
Stm32L4S9,
#[serde(rename = "stm32wbx5")]
Stm32WbX5,
Stm32Wbx5,
}
20 changes: 10 additions & 10 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub enum Device {
Stm32L4S5,
Stm32L4S7,
Stm32L4S9,
Stm32WbX5,
Stm32Wbx5,
}

impl Device {
Expand Down Expand Up @@ -55,7 +55,7 @@ impl Device {
item!(Self::Stm32L4S5);
item!(Self::Stm32L4S7);
item!(Self::Stm32L4S9);
item!(Self::Stm32WbX5);
item!(Self::Stm32Wbx5);
Ok(())
}

Expand All @@ -78,7 +78,7 @@ impl Device {
"stm32l4s5" => Self::Stm32L4S5,
"stm32l4s7" => Self::Stm32L4S7,
"stm32l4s9" => Self::Stm32L4S9,
"stm32wbx5" => Self::Stm32WbX5,
"stm32wbx5" => Self::Stm32Wbx5,
_ => bail!(
"unsupported device `{}`. Run `drone supported-devices` for the list of \
available options.",
Expand Down Expand Up @@ -106,7 +106,7 @@ impl Device {
Self::Stm32L4S5 => "stm32l4s5",
Self::Stm32L4S7 => "stm32l4s7",
Self::Stm32L4S9 => "stm32l4s9",
Self::Stm32WbX5 => "stm32wbx5",
Self::Stm32Wbx5 => "stm32wbx5",
}
}

Expand All @@ -129,7 +129,7 @@ impl Device {
Self::Stm32L4S5 => "STM32L4S5",
Self::Stm32L4S7 => "STM32L4S7",
Self::Stm32L4S9 => "STM32L4S9",
Self::Stm32WbX5 => "STM32WBX5",
Self::Stm32Wbx5 => "STM32WBX5",
}
}

Expand All @@ -152,7 +152,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9 => "STM32L4+ Ultra Low Power",
Self::Stm32WbX5 => "STM32WB multi-protocol wireless / bluetooth",
Self::Stm32Wbx5 => "STM32WB multi-protocol wireless / bluetooth",
}
}

Expand All @@ -175,7 +175,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9
| Self::Stm32WbX5 => "thumbv7em-none-eabihf",
| Self::Stm32Wbx5 => "thumbv7em-none-eabihf",
}
}

Expand All @@ -198,7 +198,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9
| Self::Stm32WbX5 => 0x0800_0000,
| Self::Stm32Wbx5 => 0x0800_0000,
}
}

Expand All @@ -221,7 +221,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9
| Self::Stm32WbX5 => 0x2000_0000,
| Self::Stm32Wbx5 => 0x2000_0000,
}
}

Expand All @@ -244,7 +244,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9
| Self::Stm32WbX5 => &["fpu"],
| Self::Stm32Wbx5 => &["fpu"],
}
}
}

0 comments on commit 6d770b6

Please sign in to comment.