Fix compile error in ospi

This commit is contained in:
Rasmus Melchior Jacobsen 2025-02-18 08:43:48 +01:00 committed by Dario Nieuwenhuis
parent 97ed7f085a
commit 5e762e8cf4

View File

@ -372,7 +372,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> {
});
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
@ -643,7 +643,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> {
});
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