fix: h5-only rx filter

This commit is contained in:
elagil 2024-12-22 15:06:42 +01:00
parent b35b45e151
commit c9cd46bdf5

View File

@ -175,6 +175,7 @@ impl<'d, T: Instance> Ucpd<'d, T> {
w.set_ucpden(true); w.set_ucpden(true);
}); });
#[cfg(stm32h5)]
r.cfgr2().write(|w| { r.cfgr2().write(|w| {
w.set_rxafilten(true); w.set_rxafilten(true);
}); });
@ -190,6 +191,7 @@ impl<'d, T: Instance> Ucpd<'d, T> {
w.set_trim_cc2_rd(trim_rd_cc2 as u8); w.set_trim_cc2_rd(trim_rd_cc2 as u8);
}); });
} }
Self { Self {
cc_phy: CcPhy { _lifetime: PhantomData }, cc_phy: CcPhy { _lifetime: PhantomData },
} }