Fix compile error in ospi
This commit is contained in:
parent
97ed7f085a
commit
5e762e8cf4
@ -372,7 +372,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
T::REGS.cr().modify(|w| {
|
T::REGS.cr().modify(|w| {
|
||||||
w.set_fthres(vals::Threshold(config.fifo_threshold.into()));
|
w.set_fthres(vals::Threshold::from_bits(config.fifo_threshold.into()));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wait for busy flag to clear
|
// Wait for busy flag to clear
|
||||||
@ -643,7 +643,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
T::REGS.cr().modify(|w| {
|
T::REGS.cr().modify(|w| {
|
||||||
w.set_fthres(vals::Threshold(config.fifo_threshold.into()));
|
w.set_fthres(vals::Threshold::from_bits(config.fifo_threshold.into()));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wait for busy flag to clear
|
// Wait for busy flag to clear
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user