From aeec76ae1211d42ecd6109b08121e8591d4e12e5 Mon Sep 17 00:00:00 2001 From: Richard Meadows <962920+richardeoin@users.noreply.github.com> Date: Fri, 3 Nov 2023 21:58:47 +0100 Subject: [PATCH] Update usb examples after #464 --- examples/usb_phy_serial_interrupt.rs | 3 +++ examples/usb_serial.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/usb_phy_serial_interrupt.rs b/examples/usb_phy_serial_interrupt.rs index 68d2d83c..dff0fee7 100644 --- a/examples/usb_phy_serial_interrupt.rs +++ b/examples/usb_phy_serial_interrupt.rs @@ -1,4 +1,7 @@ //! CDC-ACM serial port example using an external phy and interrupts +//! +//! This example is for RM0433/RM0399 parts. It has been tested on the Arduino +//! Portenta H7 #![no_std] #![no_main] diff --git a/examples/usb_serial.rs b/examples/usb_serial.rs index 1a08b470..892e15f6 100644 --- a/examples/usb_serial.rs +++ b/examples/usb_serial.rs @@ -59,7 +59,7 @@ fn main() -> ! { #[cfg(any(feature = "rm0455", feature = "rm0468"))] let (pin_dm, pin_dp) = { let gpioa = dp.GPIOA.split(ccdr.peripheral.GPIOA); - (gpioa.pa11.into_alternate(), gpioa.pa12.into_alternate()) + (gpioa.pa11, gpioa.pa12) }; let usb = USB1::new(