USB type alias
This commit is contained in:
@@ -8,8 +8,8 @@ use embassy_usb::driver::{Driver as UsbDriverTrait, EndpointIn, EndpointOut};
|
|||||||
use embassy_usb::UsbDevice;
|
use embassy_usb::UsbDevice;
|
||||||
|
|
||||||
type UsbDriver = StmUsbDriver<'static, USB_OTG_FS>;
|
type UsbDriver = StmUsbDriver<'static, USB_OTG_FS>;
|
||||||
type InterIn = <UsbDriver as UsbDriverTrait<'static>>::EndpointIn;
|
pub type InterIn = <UsbDriver as UsbDriverTrait<'static>>::EndpointIn;
|
||||||
type InterOut = <UsbDriver as UsbDriverTrait<'static>>::EndpointOut;
|
pub type InterOut = <UsbDriver as UsbDriverTrait<'static>>::EndpointOut;
|
||||||
|
|
||||||
pub type TypedUSB = UsbDevice<'static, UsbDriver>;
|
pub type TypedUSB = UsbDevice<'static, UsbDriver>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user