Reduce use of the full futures crate.

This commit is contained in:
Dario Nieuwenhuis
2024-04-26 23:18:28 +02:00
parent 597315873d
commit 5732ee7ca9
54 changed files with 39 additions and 63 deletions

View File

@@ -16,7 +16,6 @@ target = "thumbv7em-none-eabi"
[dependencies]
critical-section = "1.1"
futures = { version = "0.3.17", default-features = false }
embassy-sync = { version = "0.5.0", path = "../embassy-sync" }
embassy-usb-driver = {version = "0.1.0", path = "../embassy-usb-driver" }

View File

@@ -7,6 +7,7 @@
mod fmt;
use core::cell::UnsafeCell;
use core::future::poll_fn;
use core::marker::PhantomData;
use core::sync::atomic::{AtomicBool, AtomicU16, Ordering};
use core::task::Poll;
@@ -16,7 +17,6 @@ use embassy_usb_driver::{
Bus as _, Direction, EndpointAddress, EndpointAllocError, EndpointError, EndpointIn, EndpointInfo, EndpointOut,
EndpointType, Event, Unsupported,
};
use futures::future::poll_fn;
pub mod otg_v1;