diff options
| author | Jan Špaček <[email protected]> | 2024-05-24 22:04:04 +0200 |
|---|---|---|
| committer | Jan Špaček <[email protected]> | 2024-05-25 18:44:55 +0200 |
| commit | 081afca3f065dfd91e157d7c9a9477e2d914c99d (patch) | |
| tree | 574b29636674d3e5a9e3763d00f709635856403e /embassy-stm32/src/ipcc.rs | |
| parent | 01c1cb2764300625f80b24e70052f250de27d814 (diff) | |
stm32/rcc: replace generated enable/disable code with runtime info
Diffstat (limited to 'embassy-stm32/src/ipcc.rs')
| -rw-r--r-- | embassy-stm32/src/ipcc.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/embassy-stm32/src/ipcc.rs b/embassy-stm32/src/ipcc.rs index 4d535cce2..6c8347311 100644 --- a/embassy-stm32/src/ipcc.rs +++ b/embassy-stm32/src/ipcc.rs | |||
| @@ -6,10 +6,9 @@ use core::task::Poll; | |||
| 6 | 6 | ||
| 7 | use embassy_sync::waitqueue::AtomicWaker; | 7 | use embassy_sync::waitqueue::AtomicWaker; |
| 8 | 8 | ||
| 9 | use crate::interrupt; | ||
| 10 | use crate::interrupt::typelevel::Interrupt; | 9 | use crate::interrupt::typelevel::Interrupt; |
| 11 | use crate::peripherals::IPCC; | 10 | use crate::peripherals::IPCC; |
| 12 | use crate::rcc::SealedRccPeripheral; | 11 | use crate::{interrupt, rcc}; |
| 13 | 12 | ||
| 14 | /// Interrupt handler. | 13 | /// Interrupt handler. |
| 15 | pub struct ReceiveInterruptHandler {} | 14 | pub struct ReceiveInterruptHandler {} |
| @@ -102,7 +101,7 @@ pub struct Ipcc; | |||
| 102 | impl Ipcc { | 101 | impl Ipcc { |
| 103 | /// Enable IPCC. | 102 | /// Enable IPCC. |
| 104 | pub fn enable(_config: Config) { | 103 | pub fn enable(_config: Config) { |
| 105 | IPCC::enable_and_reset(); | 104 | rcc::enable_and_reset::<IPCC>(); |
| 106 | IPCC::set_cpu2(true); | 105 | IPCC::set_cpu2(true); |
| 107 | 106 | ||
| 108 | // set RF wake-up clock = LSE | 107 | // set RF wake-up clock = LSE |
