mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
fixed hanging when lse_sysen disabled
This commit is contained in:
parent
e09e4e9612
commit
e76473ae95
@ -257,9 +257,11 @@ impl LsConfig {
|
|||||||
w.set_lsesysen(lse_sysen);
|
w.set_lsesysen(lse_sysen);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if lse_sysen {
|
||||||
while !bdcr().read().lsesysrdy() {}
|
while !bdcr().read().lsesysrdy() {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if self.rtc != RtcClockSource::DISABLE {
|
if self.rtc != RtcClockSource::DISABLE {
|
||||||
bdcr().modify(|w| {
|
bdcr().modify(|w| {
|
||||||
|
Loading…
Reference in New Issue
Block a user