1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

atusb/fw/usb/: enable MCU reset on USB bus reset after config selection

This way the host can reset the MCU if it's hung (for example, in the
panic loop) and we don't need to unplug-replug.
This commit is contained in:
Werner Almesberger
2013-04-01 15:54:44 -03:00
parent 65722d417a
commit 9b2696b848
3 changed files with 8 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ bool handle_setup(const struct setup_request *setup)
case TO_DEVICE(SET_CONFIGURATION):
if (setup->wValue != config_descriptor[5])
return 0;
usb_enable_bus_reset();
break;
/*