diff options
| author | elagil <[email protected]> | 2024-12-22 15:06:42 +0100 |
|---|---|---|
| committer | elagil <[email protected]> | 2024-12-22 15:07:58 +0100 |
| commit | c9cd46bdf5eef502f35deadd606aa154207c1d33 (patch) | |
| tree | 2d9f9a1de8c5a5ea08da3739e342509c8c4d95f9 /embassy-stm32/src/ucpd.rs | |
| parent | b35b45e151e324d5b64c54f3443bf714ef367551 (diff) | |
fix: h5-only rx filter
Diffstat (limited to 'embassy-stm32/src/ucpd.rs')
| -rw-r--r-- | embassy-stm32/src/ucpd.rs | 2 |
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 | } |
