Discard usb output before connection. Handle USB reset. 0.2
authorKeith Packard <keithp@keithp.com>
Thu, 14 May 2009 03:41:54 +0000 (20:41 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 14 May 2009 03:41:54 +0000 (20:41 -0700)
commit37250b00f6286aee4b3b28604f5d463db3079a89
tree725ad08d5c37cd2832d5fbc47f9ad3a302944b7f
parent9b974217958b1017e62d6c4f4568f547ccc30c58
Discard usb output before connection. Handle USB reset.

Discarding output before USB is plugged in allows threads that send output
and do other things to work without a USB connection. Unfortuantely, there
doesn't appear to be any way to detect when the USB link is disconnected,
which means that once USB is enabled, future writes will continue to block.

USB reset causes the USB interrupts to all be reconfigured back to power-on
state.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao_usb.c
cc1111.h