Skip to main content

task

Function task 

Source
pub fn task(
    usb0: USB0<'static>,
    dp: GPIO20<'static>,
    dm: GPIO19<'static>,
) -> Result<SpawnToken<impl Sized>, SpawnError>
Expand description

Runs the USB-CDC-ACM device and the esptool reset protocol.

The DP/DM pins are fixed by the S2 hardware (GPIO20/GPIO19).