mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Merge pull request #1730 from bartekkowalski/main
LSE requires setting PWREN bit on STM32L4
This commit is contained in:
commit
5e4f65fe1f
@ -412,6 +412,7 @@ pub(crate) unsafe fn init(config: Config) {
|
||||
match config.rtc_mux {
|
||||
RtcClockSource::LSE32 => {
|
||||
// 1. Unlock the backup domain
|
||||
RCC.apb1enr1().modify(|w| w.set_pwren(true));
|
||||
PWR.cr1().modify(|w| w.set_dbp(true));
|
||||
|
||||
// 2. Setup the LSE
|
||||
|
Loading…
Reference in New Issue
Block a user