Remove not needed async

This commit is contained in:
hodasemi 2024-03-10 19:19:08 +01:00
parent 9e009eb75e
commit 7f2653a2ed

View file

@ -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>) {