diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-01-24 00:50:35 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-01-24 00:50:35 +0100 |
| commit | a8580ec78ade8a3c376f4ab64a7ead597ca78354 (patch) | |
| tree | b0a81c18218b8828559791b27fcf23d1df9546d6 | |
| parent | 533ceb707c88b869b5f198a5553e968912f68ad1 (diff) | |
stm32/rcc: fix stm32f410
| -rw-r--r-- | embassy-stm32/src/rcc/mod.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs index e5bf15c86..541d9c148 100644 --- a/embassy-stm32/src/rcc/mod.rs +++ b/embassy-stm32/src/rcc/mod.rs | |||
| @@ -46,13 +46,17 @@ pub struct Clocks { | |||
| 46 | #[cfg(any(rcc_l0, rcc_l1, rcc_f0, rcc_f1, rcc_f3, rcc_f0x0, rcc_g0))] | 46 | #[cfg(any(rcc_l0, rcc_l1, rcc_f0, rcc_f1, rcc_f3, rcc_f0x0, rcc_g0))] |
| 47 | pub ahb: Hertz, | 47 | pub ahb: Hertz, |
| 48 | 48 | ||
| 49 | #[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_g4, rcc_u5, rcc_wb, rcc_wl5))] | 49 | #[cfg(any( |
| 50 | rcc_l4, rcc_f4, rcc_f410, rcc_f7, rcc_h7, rcc_g4, rcc_u5, rcc_wb, rcc_wl5 | ||
| 51 | ))] | ||
| 50 | pub ahb1: Hertz, | 52 | pub ahb1: Hertz, |
| 51 | 53 | ||
| 52 | #[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_g4, rcc_u5, rcc_wb, rcc_wl5))] | 54 | #[cfg(any( |
| 55 | rcc_l4, rcc_f4, rcc_f410, rcc_f7, rcc_h7, rcc_g4, rcc_u5, rcc_wb, rcc_wl5 | ||
| 56 | ))] | ||
| 53 | pub ahb2: Hertz, | 57 | pub ahb2: Hertz, |
| 54 | 58 | ||
| 55 | #[cfg(any(rcc_l4, rcc_f4, rcc_f7, rcc_h7, rcc_u5, rcc_wb, rcc_wl5))] | 59 | #[cfg(any(rcc_l4, rcc_f4, rcc_f410, rcc_f7, rcc_h7, rcc_u5, rcc_wb, rcc_wl5))] |
| 56 | pub ahb3: Hertz, | 60 | pub ahb3: Hertz, |
| 57 | 61 | ||
| 58 | #[cfg(any(rcc_h7))] | 62 | #[cfg(any(rcc_h7))] |
| @@ -61,7 +65,7 @@ pub struct Clocks { | |||
| 61 | #[cfg(any(rcc_h7))] | 65 | #[cfg(any(rcc_h7))] |
| 62 | pub apb4: Hertz, | 66 | pub apb4: Hertz, |
| 63 | 67 | ||
| 64 | #[cfg(any(rcc_f4, rcc_f7))] | 68 | #[cfg(any(rcc_f4, rcc_f410, rcc_f7))] |
| 65 | pub pll48: Option<Hertz>, | 69 | pub pll48: Option<Hertz>, |
| 66 | 70 | ||
| 67 | #[cfg(rcc_f1)] | 71 | #[cfg(rcc_f1)] |
