aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/ucpd.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/ucpd.rs b/embassy-stm32/src/ucpd.rs
index ac31f46a4..2cfdcb415 100644
--- a/embassy-stm32/src/ucpd.rs
+++ b/embassy-stm32/src/ucpd.rs
@@ -175,6 +175,7 @@ impl<'d, T: Instance> Ucpd<'d, T> {
175 w.set_ucpden(true); 175 w.set_ucpden(true);
176 }); 176 });
177 177
178 #[cfg(stm32h5)]
178 r.cfgr2().write(|w| { 179 r.cfgr2().write(|w| {
179 w.set_rxafilten(true); 180 w.set_rxafilten(true);
180 }); 181 });
@@ -190,6 +191,7 @@ impl<'d, T: Instance> Ucpd<'d, T> {
190 w.set_trim_cc2_rd(trim_rd_cc2 as u8); 191 w.set_trim_cc2_rd(trim_rd_cc2 as u8);
191 }); 192 });
192 } 193 }
194
193 Self { 195 Self {
194 cc_phy: CcPhy { _lifetime: PhantomData }, 196 cc_phy: CcPhy { _lifetime: PhantomData },
195 } 197 }