Remove not needed async
This commit is contained in:
parent
9e009eb75e
commit
7f2653a2ed
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ static mut BOS_DESCRIPTOR_BUFFER: [u8; 256] = [0; 256];
|
||||||
static mut MSOS_DESCRIPTOR_BUFFER: [u8; 256] = [0; 256];
|
static mut MSOS_DESCRIPTOR_BUFFER: [u8; 256] = [0; 256];
|
||||||
static mut CONTROL_BUFFER: [u8; 64] = [0; 64];
|
static mut CONTROL_BUFFER: [u8; 64] = [0; 64];
|
||||||
static mut STATE: Option<State<'static>> = None;
|
static mut STATE: Option<State<'static>> = None;
|
||||||
pub static mut USB: Option<UsbDevice<'static, Driver<'static, USB>>> = None;
|
static mut USB: Option<UsbDevice<'static, Driver<'static, USB>>> = None;
|
||||||
|
|
||||||
bind_interrupts!(struct Irqs {
|
bind_interrupts!(struct Irqs {
|
||||||
USBCTRL_IRQ => InterruptHandler<USB>;
|
USBCTRL_IRQ => InterruptHandler<USB>;
|
||||||
|
@ -33,7 +33,7 @@ pub struct Serial<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Serial<'static> {
|
impl Serial<'static> {
|
||||||
pub async fn new(
|
pub fn new(
|
||||||
usb: USB,
|
usb: USB,
|
||||||
serial_config: SerialConfig<'static>,
|
serial_config: SerialConfig<'static>,
|
||||||
) -> (Serial<'static>, impl Future<Output = Never>) {
|
) -> (Serial<'static>, impl Future<Output = Never>) {
|
||||||
|
|
Loading…
Reference in a new issue