aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/ipcc.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-10-23 00:28:54 +0200
committerDario Nieuwenhuis <[email protected]>2023-10-23 00:31:36 +0200
commitb9e13cb5d1ca3e85a02b2a37b7ee14f73663b1bd (patch)
tree1ae33453bcee12a6aaf4cfdd8dc1795187c7cadc /embassy-stm32/src/ipcc.rs
parent46ff2c82aa3193dd1378b142be284aa746045923 (diff)
stm32/rcc: merge wl into l4/l5.
Diffstat (limited to 'embassy-stm32/src/ipcc.rs')
-rw-r--r--embassy-stm32/src/ipcc.rs5
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;
5use self::sealed::Instance; 5use self::sealed::Instance;
6use crate::interrupt; 6use crate::interrupt;
7use crate::interrupt::typelevel::Interrupt; 7use crate::interrupt::typelevel::Interrupt;
8use crate::pac::rcc::vals::{Lptim1sel, Lptim2sel};
8use crate::peripherals::IPCC; 9use crate::peripherals::IPCC;
9use crate::rcc::sealed::RccPeripheral; 10use 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}