Skip to content

Commit

Permalink
WbX -> Wbx
Browse files Browse the repository at this point in the history
  • Loading branch information
rubdos authored and Vanarill committed Feb 10, 2020
1 parent 3136f46 commit d7f6cca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub enum Device {
Stm32L4S5,
Stm32L4S7,
Stm32L4S9,
Stm32WbX5,
Stm32Wbx5,
}

impl Device {
Expand Down Expand Up @@ -112,7 +112,7 @@ impl Device {
item!(Self::Stm32L4S7);
item!(Self::Stm32L4S9);
family!("STM32WB multi-protocol wireless / bluetooth");
item!(Self::Stm32WbX5);
item!(Self::Stm32Wbx5);
Ok(())
}

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

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

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

Expand Down Expand Up @@ -258,7 +258,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9
| Self::Stm32WbX5 => Some(4_000_000),
| Self::Stm32Wbx5 => Some(4_000_000),
}
}

Expand Down Expand Up @@ -296,7 +296,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9
| Self::Stm32WbX5 => (crates::Platform::CortexM, "cortex_m4f_r0p1", &["fpu"]),
| Self::Stm32Wbx5 => (crates::Platform::CortexM, "cortex_m4f_r0p1", &["fpu"]),
}
}

Expand Down Expand Up @@ -422,7 +422,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9 => &[Probe::Bmp, Probe::Openocd],
Self::Stm32WbX5 => &[Probe::Openocd],
Self::Stm32Wbx5 => &[Probe::Openocd],
}
}

Expand Down Expand Up @@ -459,7 +459,7 @@ impl Device {
| Self::Stm32L4S5
| Self::Stm32L4S7
| Self::Stm32L4S9 => &["target/stm32l4x.cfg"],
Self::Stm32WbX5 => &["target/stm32wbx.cfg"],
Self::Stm32Wbx5 => &["target/stm32wbx.cfg"],
}
}
}

0 comments on commit d7f6cca

Please sign in to comment.