mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 22:54:52 +00:00
fix: h5-only rx filter
This commit is contained in:
parent
b35b45e151
commit
c9cd46bdf5
@ -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 },
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user