diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-04-26 21:59:31 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-26 21:59:31 +0000 |
| commit | 34074e6eb0741e084653b3ef71163393741f558b (patch) | |
| tree | f627117733d3fcd5bbb4eb664559c387a8e81f33 /embassy-usb-synopsys-otg | |
| parent | 026445d0109f9e80586634a757dfe39a58068cfc (diff) | |
| parent | 5732ee7ca975c0dd1afa83ade1667a2599d20985 (diff) | |
Merge pull request #2872 from embassy-rs/cleanups
Misc cleanups.
Diffstat (limited to 'embassy-usb-synopsys-otg')
| -rw-r--r-- | embassy-usb-synopsys-otg/Cargo.toml | 3 | ||||
| -rw-r--r-- | embassy-usb-synopsys-otg/src/lib.rs | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/embassy-usb-synopsys-otg/Cargo.toml b/embassy-usb-synopsys-otg/Cargo.toml index b0562627b..f117d0cbf 100644 --- a/embassy-usb-synopsys-otg/Cargo.toml +++ b/embassy-usb-synopsys-otg/Cargo.toml | |||
| @@ -8,8 +8,6 @@ categories = ["embedded", "hardware-support", "no-std", "asynchronous"] | |||
| 8 | repository = "https://github.com/embassy-rs/embassy" | 8 | repository = "https://github.com/embassy-rs/embassy" |
| 9 | documentation = "https://docs.embassy.dev/embassy-usb-synopsys-otg" | 9 | documentation = "https://docs.embassy.dev/embassy-usb-synopsys-otg" |
| 10 | 10 | ||
| 11 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
| 12 | |||
| 13 | [package.metadata.embassy_docs] | 11 | [package.metadata.embassy_docs] |
| 14 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-synopsys-otg-v$VERSION/embassy-usb-synopsys-otg/src/" | 12 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-synopsys-otg-v$VERSION/embassy-usb-synopsys-otg/src/" |
| 15 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-synopsys-otg/src/" | 13 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-synopsys-otg/src/" |
| @@ -18,7 +16,6 @@ target = "thumbv7em-none-eabi" | |||
| 18 | 16 | ||
| 19 | [dependencies] | 17 | [dependencies] |
| 20 | critical-section = "1.1" | 18 | critical-section = "1.1" |
| 21 | futures = { version = "0.3.17", default-features = false } | ||
| 22 | 19 | ||
| 23 | embassy-sync = { version = "0.5.0", path = "../embassy-sync" } | 20 | embassy-sync = { version = "0.5.0", path = "../embassy-sync" } |
| 24 | embassy-usb-driver = {version = "0.1.0", path = "../embassy-usb-driver" } | 21 | embassy-usb-driver = {version = "0.1.0", path = "../embassy-usb-driver" } |
diff --git a/embassy-usb-synopsys-otg/src/lib.rs b/embassy-usb-synopsys-otg/src/lib.rs index 59a99796c..af82de2c1 100644 --- a/embassy-usb-synopsys-otg/src/lib.rs +++ b/embassy-usb-synopsys-otg/src/lib.rs | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | mod fmt; | 7 | mod fmt; |
| 8 | 8 | ||
| 9 | use core::cell::UnsafeCell; | 9 | use core::cell::UnsafeCell; |
| 10 | use core::future::poll_fn; | ||
| 10 | use core::marker::PhantomData; | 11 | use core::marker::PhantomData; |
| 11 | use core::sync::atomic::{AtomicBool, AtomicU16, Ordering}; | 12 | use core::sync::atomic::{AtomicBool, AtomicU16, Ordering}; |
| 12 | use core::task::Poll; | 13 | use core::task::Poll; |
| @@ -16,7 +17,6 @@ use embassy_usb_driver::{ | |||
| 16 | Bus as _, Direction, EndpointAddress, EndpointAllocError, EndpointError, EndpointIn, EndpointInfo, EndpointOut, | 17 | Bus as _, Direction, EndpointAddress, EndpointAllocError, EndpointError, EndpointIn, EndpointInfo, EndpointOut, |
| 17 | EndpointType, Event, Unsupported, | 18 | EndpointType, Event, Unsupported, |
| 18 | }; | 19 | }; |
| 19 | use futures::future::poll_fn; | ||
| 20 | 20 | ||
| 21 | pub mod otg_v1; | 21 | pub mod otg_v1; |
| 22 | 22 | ||
