stmf0: Clear all USB state when resetting chip. Wakeup all sleepers
authorKeith Packard <keithp@keithp.com>
Fri, 10 Jun 2016 05:05:24 +0000 (22:05 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 10 Jun 2016 05:05:24 +0000 (22:05 -0700)
commit2970de9f92243b11d3beef56f3b1df3ef3579b95
tree6464571a07d90db93736a2b0b40ad9a34fb91772
parent55c8e5aff2cc7b941503a04970f7d368261af52a
stmf0: Clear all USB state when resetting chip. Wakeup all sleepers

When USB is reset, but the board is not power cycled, all of the
internal USB state needs to be reset, and any tasks blocked on sending
or receiving packets need to be awoken so they can go wait for USB to
start running again.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stmf0/ao_usb_stm.c