aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/rcc/l.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-stm32/src/rcc/l.rs')
-rw-r--r--embassy-stm32/src/rcc/l.rs17
1 files changed, 12 insertions, 5 deletions
diff --git a/embassy-stm32/src/rcc/l.rs b/embassy-stm32/src/rcc/l.rs
index 81b89046e..0d668103c 100644
--- a/embassy-stm32/src/rcc/l.rs
+++ b/embassy-stm32/src/rcc/l.rs
@@ -135,7 +135,14 @@ pub const WPAN_DEFAULT: Config = Config {
135 apb1_pre: APBPrescaler::DIV1, 135 apb1_pre: APBPrescaler::DIV1,
136 apb2_pre: APBPrescaler::DIV1, 136 apb2_pre: APBPrescaler::DIV1,
137 137
138 mux: super::mux::ClockMux::default(), 138 mux: {
139 use crate::pac::rcc::vals::Rfwkpsel;
140
141 let mut mux = super::mux::ClockMux::default();
142
143 mux.rfwkpsel = Rfwkpsel::LSE;
144 mux
145 },
139}; 146};
140 147
141fn msi_enable(range: MSIRange) { 148fn msi_enable(range: MSIRange) {
@@ -499,9 +506,9 @@ pub use pll::*;
499 506
500#[cfg(any(stm32l0, stm32l1))] 507#[cfg(any(stm32l0, stm32l1))]
501mod pll { 508mod pll {
502 use super::{pll_enable, PllInstance}; 509 use super::{PllInstance, pll_enable};
503 pub use crate::pac::rcc::vals::{Plldiv as PllDiv, Pllmul as PllMul, Pllsrc as PllSource};
504 use crate::pac::RCC; 510 use crate::pac::RCC;
511 pub use crate::pac::rcc::vals::{Plldiv as PllDiv, Pllmul as PllMul, Pllsrc as PllSource};
505 use crate::time::Hertz; 512 use crate::time::Hertz;
506 513
507 #[derive(Clone, Copy)] 514 #[derive(Clone, Copy)]
@@ -563,11 +570,11 @@ mod pll {
563 570
564#[cfg(any(stm32l4, stm32l5, stm32wb, stm32wl, stm32u0))] 571#[cfg(any(stm32l4, stm32l5, stm32wb, stm32wl, stm32u0))]
565mod pll { 572mod pll {
566 use super::{pll_enable, PllInstance}; 573 use super::{PllInstance, pll_enable};
574 use crate::pac::RCC;
567 pub use crate::pac::rcc::vals::{ 575 pub use crate::pac::rcc::vals::{
568 Pllm as PllPreDiv, Plln as PllMul, Pllp as PllPDiv, Pllq as PllQDiv, Pllr as PllRDiv, Pllsrc as PllSource, 576 Pllm as PllPreDiv, Plln as PllMul, Pllp as PllPDiv, Pllq as PllQDiv, Pllr as PllRDiv, Pllsrc as PllSource,
569 }; 577 };
570 use crate::pac::RCC;
571 use crate::time::Hertz; 578 use crate::time::Hertz;
572 579
573 #[derive(Clone, Copy)] 580 #[derive(Clone, Copy)]