diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-07-16 20:14:47 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-07-16 22:08:50 +0200 |
| commit | c78dfa7e31e0808d413ad37de8d966cffe4a8fdd (patch) | |
| tree | 4210646e4cf9db2d4af168d5e5db0d81bc7f23f5 /embassy-stm32/src | |
| parent | 6fb85826e86937ca2de6dab6346803abc81ccb04 (diff) | |
stm32: fix stm32g0b0 build.
It has USB but not HSI48 which would break things. Only g0x1 has HSI48.
Diffstat (limited to 'embassy-stm32/src')
| -rw-r--r-- | embassy-stm32/src/rcc/mco.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/usb/otg.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/rcc/mco.rs b/embassy-stm32/src/rcc/mco.rs index c50e071fb..0371b9141 100644 --- a/embassy-stm32/src/rcc/mco.rs +++ b/embassy-stm32/src/rcc/mco.rs | |||
| @@ -74,7 +74,7 @@ macro_rules! impl_peri { | |||
| 74 | }; | 74 | }; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | #[cfg(any(rcc_c0, rcc_g0, rcc_u0))] | 77 | #[cfg(any(rcc_c0, rcc_g0x0, rcc_g0x1, rcc_u0))] |
| 78 | #[allow(unused_imports)] | 78 | #[allow(unused_imports)] |
| 79 | use self::{McoSource as Mco1Source, McoSource as Mco2Source}; | 79 | use self::{McoSource as Mco1Source, McoSource as Mco2Source}; |
| 80 | 80 | ||
diff --git a/embassy-stm32/src/usb/otg.rs b/embassy-stm32/src/usb/otg.rs index 3547ded00..e9afc0c54 100644 --- a/embassy-stm32/src/usb/otg.rs +++ b/embassy-stm32/src/usb/otg.rs | |||
| @@ -527,7 +527,7 @@ foreach_interrupt!( | |||
| 527 | ))] { | 527 | ))] { |
| 528 | const FIFO_DEPTH_WORDS: u16 = 1024; | 528 | const FIFO_DEPTH_WORDS: u16 = 1024; |
| 529 | const ENDPOINT_COUNT: usize = 9; | 529 | const ENDPOINT_COUNT: usize = 9; |
| 530 | } else if #[cfg(stm32u5)] { | 530 | } else if #[cfg(any(stm32u5, stm32wba))] { |
| 531 | const FIFO_DEPTH_WORDS: u16 = 1024; | 531 | const FIFO_DEPTH_WORDS: u16 = 1024; |
| 532 | const ENDPOINT_COUNT: usize = 9; | 532 | const ENDPOINT_COUNT: usize = 9; |
| 533 | } else { | 533 | } else { |
