diff options
| author | elagil <[email protected]> | 2025-03-22 11:58:50 +0100 |
|---|---|---|
| committer | elagil <[email protected]> | 2025-03-22 11:58:50 +0100 |
| commit | e34b4d69ee101f15f773381ca575a236f6dd452e (patch) | |
| tree | 4031fb7cb61c4f7ab6209a3fd16373946371650b /embassy-stm32/src/usb | |
| parent | 5264d770079633786f6b34d6d656599bfc7efe7d (diff) | |
fix: build
Diffstat (limited to 'embassy-stm32/src/usb')
| -rw-r--r-- | embassy-stm32/src/usb/usb.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-stm32/src/usb/usb.rs b/embassy-stm32/src/usb/usb.rs index d5cfa1bb8..f050c00ce 100644 --- a/embassy-stm32/src/usb/usb.rs +++ b/embassy-stm32/src/usb/usb.rs | |||
| @@ -7,7 +7,6 @@ use core::task::Poll; | |||
| 7 | 7 | ||
| 8 | use embassy_hal_internal::into_ref; | 8 | use embassy_hal_internal::into_ref; |
| 9 | use embassy_sync::waitqueue::AtomicWaker; | 9 | use embassy_sync::waitqueue::AtomicWaker; |
| 10 | use embassy_time::Timer; | ||
| 11 | use embassy_usb_driver as driver; | 10 | use embassy_usb_driver as driver; |
| 12 | use embassy_usb_driver::{ | 11 | use embassy_usb_driver::{ |
| 13 | Direction, EndpointAddress, EndpointAllocError, EndpointError, EndpointInfo, EndpointType, Event, Unsupported, | 12 | Direction, EndpointAddress, EndpointAllocError, EndpointError, EndpointInfo, EndpointType, Event, Unsupported, |
| @@ -896,7 +895,7 @@ impl<'d, T: Instance> driver::EndpointOut for Endpoint<'d, T, Out> { | |||
| 896 | // Software should ensure that a small delay is included before accessing the SRAM contents. This delay should be | 895 | // Software should ensure that a small delay is included before accessing the SRAM contents. This delay should be |
| 897 | // 800 ns in Full Speed mode and 6.4 μs in Low Speed mode. | 896 | // 800 ns in Full Speed mode and 6.4 μs in Low Speed mode. |
| 898 | #[cfg(stm32h5)] | 897 | #[cfg(stm32h5)] |
| 899 | Timer::after_nanos(800).await; | 898 | embassy_time::Timer::after_nanos(800).await; |
| 900 | 899 | ||
| 901 | RX_COMPLETE[index].store(false, Ordering::Relaxed); | 900 | RX_COMPLETE[index].store(false, Ordering::Relaxed); |
| 902 | 901 | ||
