diff options
| author | xoviat <[email protected]> | 2025-12-13 07:56:20 -0600 |
|---|---|---|
| committer | xoviat <[email protected]> | 2025-12-13 07:56:20 -0600 |
| commit | c4c63394110d455428b9da4361acc581dfec90a2 (patch) | |
| tree | d02f85313fefe179dd5749f2c69756fbc5689ac3 /embassy-stm32/src/ipcc.rs | |
| parent | 74f5ec6efdd62969c6edad706ab3313f4d535a6a (diff) | |
wpan: allow setting Rfwkpsel
Diffstat (limited to 'embassy-stm32/src/ipcc.rs')
| -rw-r--r-- | embassy-stm32/src/ipcc.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/embassy-stm32/src/ipcc.rs b/embassy-stm32/src/ipcc.rs index 183986fdc..fc0f3491e 100644 --- a/embassy-stm32/src/ipcc.rs +++ b/embassy-stm32/src/ipcc.rs | |||
| @@ -10,6 +10,7 @@ use embassy_sync::waitqueue::AtomicWaker; | |||
| 10 | 10 | ||
| 11 | use crate::interrupt::typelevel::Interrupt; | 11 | use crate::interrupt::typelevel::Interrupt; |
| 12 | use crate::peripherals::IPCC; | 12 | use crate::peripherals::IPCC; |
| 13 | use crate::rcc::SealedRccPeripheral; | ||
| 13 | use crate::{interrupt, rcc}; | 14 | use crate::{interrupt, rcc}; |
| 14 | 15 | ||
| 15 | /// Interrupt handler. | 16 | /// Interrupt handler. |
| @@ -223,11 +224,8 @@ impl Ipcc { | |||
| 223 | rcc::enable_and_reset::<IPCC>(); | 224 | rcc::enable_and_reset::<IPCC>(); |
| 224 | IPCC::set_cpu2(true); | 225 | IPCC::set_cpu2(true); |
| 225 | 226 | ||
| 226 | #[cfg(stm32wb)] | 227 | // Verify rfwkpsel is set |
| 227 | // DO NOT REMOVE THIS UNLESS YOU FIX THE EXAMPLES AND TEST FIRST | 228 | let _ = IPCC::frequency(); |
| 228 | crate::pac::RCC | ||
| 229 | .csr() | ||
| 230 | .modify(|w| w.set_rfwkpsel(stm32_metapac::rcc::vals::Rfwkpsel::LSE)); | ||
| 231 | 229 | ||
| 232 | let regs = IPCC::regs(); | 230 | let regs = IPCC::regs(); |
| 233 | 231 | ||
