mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atusb/fw: implemented USB bus reset (to host) and polling of reset from host
- usb/usb.h, usb/atu2.c (usb_reset): reset the USB bus by detaching and re-attaching the device - boot.c (main): force a USB reset before running the payload - usb/atu2.c (usb_poll): test for USB reset from the host (in progress) - usb/dfu.c (my_reset, dfu_init): register user USB reset handler
This commit is contained in:
@@ -57,6 +57,7 @@ int main(void)
|
||||
|
||||
led(0);
|
||||
|
||||
usb_reset();
|
||||
run_payload();
|
||||
|
||||
while (1); /* not reached */
|
||||
|
||||
Reference in New Issue
Block a user