Introduces EnabledUsbDevice

EnabledUsbDevice is a wrapper around the UsbDevice where their enablement is also subject to external events, such as POWER events for nRF. It is introduced generically to support other platforms should they also require external signalling for enablement.
This commit is contained in:
huntc
2022-06-15 12:17:04 +10:00
parent 1fb70e2fac
commit c46e9b6cfc
3 changed files with 100 additions and 7 deletions

View File

@ -11,6 +11,7 @@ pub mod descriptor;
mod descriptor_reader;
pub mod driver;
pub mod types;
pub mod util;
use embassy::util::{select, Either};
use heapless::Vec;