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…
x
Reference in New Issue
Block a user