feature-gate errata workaround for h7
This commit is contained in:
parent
8c13126cff
commit
6ea5aa347d
@ -183,6 +183,8 @@ impl<'d, T: Instance, Dma> Qspi<'d, T, Dma> {
|
||||
|
||||
while T::REGS.sr().read().busy() {}
|
||||
|
||||
#[cfg(stm32h7)]
|
||||
{
|
||||
// Apply precautionary steps according to the errata...
|
||||
T::REGS.cr().write_value(Cr(0));
|
||||
while T::REGS.sr().read().busy() {}
|
||||
@ -191,6 +193,7 @@ impl<'d, T: Instance, Dma> Qspi<'d, T, Dma> {
|
||||
T::REGS.ccr().write(|w| w.set_frcm(true));
|
||||
T::REGS.cr().write_value(Cr(0));
|
||||
while T::REGS.sr().read().busy() {}
|
||||
}
|
||||
|
||||
T::REGS.cr().modify(|w| {
|
||||
w.set_en(true);
|
||||
|
Loading…
Reference in New Issue
Block a user