usb feature gate

This commit is contained in:
Jacob Rosenthal
2021-12-12 21:32:51 -07:00
parent f430c0e8c2
commit e5dc63e8e9
3 changed files with 17 additions and 13 deletions

View File

@ -11,7 +11,7 @@ pub mod usb_serial;
use crate::peripheral::{PeripheralMutex, PeripheralState, StateStorage};
use embassy::interrupt::Interrupt;
use usb_serial::{ReadInterface, UsbSerial, WriteInterface};
pub use usb_serial::{ReadInterface, UsbSerial, WriteInterface};
/// Marker trait to mark an interrupt to be used with the [`Usb`] abstraction.
pub unsafe trait USBInterrupt: Interrupt + Send {}