diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-10-23 00:28:54 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-10-23 00:31:36 +0200 |
| commit | b9e13cb5d1ca3e85a02b2a37b7ee14f73663b1bd (patch) | |
| tree | 1ae33453bcee12a6aaf4cfdd8dc1795187c7cadc /embassy-stm32/src/ipcc.rs | |
| parent | 46ff2c82aa3193dd1378b142be284aa746045923 (diff) | |
stm32/rcc: merge wl into l4/l5.
Diffstat (limited to 'embassy-stm32/src/ipcc.rs')
| -rw-r--r-- | embassy-stm32/src/ipcc.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-stm32/src/ipcc.rs b/embassy-stm32/src/ipcc.rs index 1b1e182f0..4006dee19 100644 --- a/embassy-stm32/src/ipcc.rs +++ b/embassy-stm32/src/ipcc.rs | |||
| @@ -5,6 +5,7 @@ use core::task::Poll; | |||
| 5 | use self::sealed::Instance; | 5 | use self::sealed::Instance; |
| 6 | use crate::interrupt; | 6 | use crate::interrupt; |
| 7 | use crate::interrupt::typelevel::Interrupt; | 7 | use crate::interrupt::typelevel::Interrupt; |
| 8 | use crate::pac::rcc::vals::{Lptim1sel, Lptim2sel}; | ||
| 8 | use crate::peripherals::IPCC; | 9 | use crate::peripherals::IPCC; |
| 9 | use crate::rcc::sealed::RccPeripheral; | 10 | use crate::rcc::sealed::RccPeripheral; |
| 10 | 11 | ||
| @@ -273,7 +274,7 @@ fn _configure_pwr() { | |||
| 273 | 274 | ||
| 274 | // set LPTIM1 & LPTIM2 clock source | 275 | // set LPTIM1 & LPTIM2 clock source |
| 275 | rcc.ccipr().modify(|w| { | 276 | rcc.ccipr().modify(|w| { |
| 276 | w.set_lptim1sel(0b00); // PCLK | 277 | w.set_lptim1sel(Lptim1sel::PCLK1); |
| 277 | w.set_lptim2sel(0b00); // PCLK | 278 | w.set_lptim2sel(Lptim2sel::PCLK1); |
| 278 | }); | 279 | }); |
| 279 | } | 280 | } |
