aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/sai
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-01-10 18:06:47 +0100
committerDario Nieuwenhuis <[email protected]>2024-01-10 18:06:47 +0100
commit3bc6e414f7b1d4b4d138c7e90f7f9e85a7ca2885 (patch)
tree4e0881c6724c428a8bb5272196a30e82d124b01e /embassy-stm32/src/sai
parent38a927175bce522dbf43ab67c60465ce19b46828 (diff)
stm32: update metapac.
Diffstat (limited to 'embassy-stm32/src/sai')
-rw-r--r--embassy-stm32/src/sai/mod.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/embassy-stm32/src/sai/mod.rs b/embassy-stm32/src/sai/mod.rs
index ef8802184..5e647612c 100644
--- a/embassy-stm32/src/sai/mod.rs
+++ b/embassy-stm32/src/sai/mod.rs
@@ -846,14 +846,7 @@ impl<'d, T: Instance, C: Channel, W: word::Word> Sai<'d, T, C, W> {
846 pub fn flush(&mut self) { 846 pub fn flush(&mut self) {
847 let ch = T::REGS.ch(self.sub_block as usize); 847 let ch = T::REGS.ch(self.sub_block as usize);
848 ch.cr1().modify(|w| w.set_saien(false)); 848 ch.cr1().modify(|w| w.set_saien(false));
849 #[cfg(any(sai_v1, sai_v2))] 849 ch.cr2().modify(|w| w.set_fflush(true));
850 {
851 ch.cr2().modify(|w| w.set_fflush(vals::Fflush::FLUSH));
852 }
853 #[cfg(any(sai_v3, sai_v4))]
854 {
855 ch.cr2().modify(|w| w.set_fflush(true));
856 }
857 ch.cr1().modify(|w| w.set_saien(true)); 850 ch.cr1().modify(|w| w.set_saien(true));
858 } 851 }
859 852