aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/ucpd.rs
diff options
context:
space:
mode:
authorelagil <[email protected]>2025-08-25 21:10:59 +0200
committerDario Nieuwenhuis <[email protected]>2025-09-05 14:43:29 +0200
commite9783ee28e9bdd89ffaeffb24bbff207c1ceb837 (patch)
treedcf348177241127c07d5739aea33cfff968e2dde /embassy-stm32/src/ucpd.rs
parentd3718c6d4e0a8485cdef8ecf6deb05c3eff5af08 (diff)
fix: build
Diffstat (limited to 'embassy-stm32/src/ucpd.rs')
-rw-r--r--embassy-stm32/src/ucpd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/ucpd.rs b/embassy-stm32/src/ucpd.rs
index 967e43a8a..18aff4fbd 100644
--- a/embassy-stm32/src/ucpd.rs
+++ b/embassy-stm32/src/ucpd.rs
@@ -490,14 +490,14 @@ impl<'d, T: Instance> PdPhy<'d, T> {
490 let sr = r.sr().read(); 490 let sr = r.sr().read();
491 491
492 if sr.rxhrstdet() { 492 if sr.rxhrstdet() {
493 dma.request_suspend(); 493 dma.request_pause();
494 494
495 // Clean and re-enable hard reset receive interrupt. 495 // Clean and re-enable hard reset receive interrupt.
496 r.icr().write(|w| w.set_rxhrstdetcf(true)); 496 r.icr().write(|w| w.set_rxhrstdetcf(true));
497 r.imr().modify(|w| w.set_rxhrstdetie(true)); 497 r.imr().modify(|w| w.set_rxhrstdetie(true));
498 Poll::Ready(Err(RxError::HardReset)) 498 Poll::Ready(Err(RxError::HardReset))
499 } else if sr.rxmsgend() { 499 } else if sr.rxmsgend() {
500 dma.request_suspend(); 500 dma.request_pause();
501 // Should be read immediately on interrupt. 501 // Should be read immediately on interrupt.
502 rxpaysz = r.rx_payszr().read().rxpaysz().into(); 502 rxpaysz = r.rx_payszr().read().rxpaysz().into();
503 503