diff options
Diffstat (limited to 'tests/stm32/src/bin/ucpd.rs')
| -rw-r--r-- | tests/stm32/src/bin/ucpd.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/stm32/src/bin/ucpd.rs b/tests/stm32/src/bin/ucpd.rs index bd7b35d6b..97aefe1a0 100644 --- a/tests/stm32/src/bin/ucpd.rs +++ b/tests/stm32/src/bin/ucpd.rs | |||
| @@ -9,7 +9,7 @@ use defmt::{assert, assert_eq}; | |||
| 9 | use embassy_executor::Spawner; | 9 | use embassy_executor::Spawner; |
| 10 | use embassy_futures::join::join; | 10 | use embassy_futures::join::join; |
| 11 | use embassy_stm32::ucpd::{self, CcPhy, CcPull, CcSel, CcVState, RxError, Ucpd}; | 11 | use embassy_stm32::ucpd::{self, CcPhy, CcPull, CcSel, CcVState, RxError, Ucpd}; |
| 12 | use embassy_stm32::{bind_interrupts, peripherals}; | 12 | use embassy_stm32::{bind_interrupts, peripherals, Peri}; |
| 13 | use embassy_time::Timer; | 13 | use embassy_time::Timer; |
| 14 | 14 | ||
| 15 | bind_interrupts!(struct Irqs { | 15 | bind_interrupts!(struct Irqs { |
| @@ -28,8 +28,8 @@ async fn wait_for_vstate<T: ucpd::Instance>(cc_phy: &mut CcPhy<'_, T>, vstate: C | |||
| 28 | 28 | ||
| 29 | async fn source( | 29 | async fn source( |
| 30 | mut ucpd: Ucpd<'static, peripherals::UCPD1>, | 30 | mut ucpd: Ucpd<'static, peripherals::UCPD1>, |
| 31 | rx_dma: peripherals::DMA1_CH1, | 31 | rx_dma: Peri<'static, peripherals::DMA1_CH1>, |
| 32 | tx_dma: peripherals::DMA1_CH2, | 32 | tx_dma: Peri<'static, peripherals::DMA1_CH2>, |
| 33 | ) { | 33 | ) { |
| 34 | debug!("source: setting default current pull-up"); | 34 | debug!("source: setting default current pull-up"); |
| 35 | ucpd.cc_phy().set_pull(CcPull::SourceDefaultUsb); | 35 | ucpd.cc_phy().set_pull(CcPull::SourceDefaultUsb); |
| @@ -65,8 +65,8 @@ async fn source( | |||
| 65 | 65 | ||
| 66 | async fn sink( | 66 | async fn sink( |
| 67 | mut ucpd: Ucpd<'static, peripherals::UCPD2>, | 67 | mut ucpd: Ucpd<'static, peripherals::UCPD2>, |
| 68 | rx_dma: peripherals::DMA1_CH3, | 68 | rx_dma: Peri<'static, peripherals::DMA1_CH3>, |
| 69 | tx_dma: peripherals::DMA1_CH4, | 69 | tx_dma: Peri<'static, peripherals::DMA1_CH4>, |
| 70 | ) { | 70 | ) { |
| 71 | debug!("sink: setting pull down"); | 71 | debug!("sink: setting pull down"); |
| 72 | ucpd.cc_phy().set_pull(CcPull::Sink); | 72 | ucpd.cc_phy().set_pull(CcPull::Sink); |
