diff options
| author | Rasmus Melchior Jacobsen <[email protected]> | 2025-02-18 08:43:48 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-03-20 01:58:44 +0100 |
| commit | 5e762e8cf41c82c33632d2b01e0644341483b57c (patch) | |
| tree | 85204d8464d97c2670c17bc493ee22b04e83d3ca | |
| parent | 97ed7f085a5f0fdec2e0311848b236883512ef70 (diff) | |
Fix compile error in ospi
| -rw-r--r-- | embassy-stm32/src/ospi/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/ospi/mod.rs b/embassy-stm32/src/ospi/mod.rs index e35d51c91..5dff3c4c3 100644 --- a/embassy-stm32/src/ospi/mod.rs +++ b/embassy-stm32/src/ospi/mod.rs | |||
| @@ -372,7 +372,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> { | |||
| 372 | }); | 372 | }); |
| 373 | 373 | ||
| 374 | T::REGS.cr().modify(|w| { | 374 | T::REGS.cr().modify(|w| { |
| 375 | w.set_fthres(vals::Threshold(config.fifo_threshold.into())); | 375 | w.set_fthres(vals::Threshold::from_bits(config.fifo_threshold.into())); |
| 376 | }); | 376 | }); |
| 377 | 377 | ||
| 378 | // Wait for busy flag to clear | 378 | // Wait for busy flag to clear |
| @@ -643,7 +643,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> { | |||
| 643 | }); | 643 | }); |
| 644 | 644 | ||
| 645 | T::REGS.cr().modify(|w| { | 645 | T::REGS.cr().modify(|w| { |
| 646 | w.set_fthres(vals::Threshold(config.fifo_threshold.into())); | 646 | w.set_fthres(vals::Threshold::from_bits(config.fifo_threshold.into())); |
| 647 | }); | 647 | }); |
| 648 | 648 | ||
| 649 | // Wait for busy flag to clear | 649 | // Wait for busy flag to clear |
