aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-12-08 07:43:33 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-12-08 07:43:33 +0000
commit2281750b5fdf046ed606e567eb60cf4e647015dd (patch)
tree74b5011a55f12a768f4232fdc771937d8e124e02 /Bootloaders
parent3757b1760fdd197a8c7227bbfd0b11ee33eb99e6 (diff)
downloadlufa-2281750b5fdf046ed606e567eb60cf4e647015dd.tar.gz
lufa-2281750b5fdf046ed606e567eb60cf4e647015dd.tar.bz2
lufa-2281750b5fdf046ed606e567eb60cf4e647015dd.zip
Make sure that USB_STREAM_TIMEOUT_MS is set in the MassStorageHost ClassDriver demo, so that slow devices don't time out the data pipe. Increase pipe timeout in both MassStorageHost demos to 5 seconds to account for the really slow devices.
Fix TeensyHID bootloader not properly shutting down the USB interface to trigger a disconnection on the host before resetting the AVR.
Diffstat (limited to 'Bootloaders')
-rw-r--r--Bootloaders/TeensyHID/TeensyHID.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bootloaders/TeensyHID/TeensyHID.c b/Bootloaders/TeensyHID/TeensyHID.c
index 4b9224abc..84ec7aac7 100644
--- a/Bootloaders/TeensyHID/TeensyHID.c
+++ b/Bootloaders/TeensyHID/TeensyHID.c
@@ -51,9 +51,9 @@ int main(void)
while (RunBootloader)
USB_USBTask();
-
- /* Wait 100ms to give the host time to register the disconnection */
- _delay_ms(100);
+
+ /* Turn off the USB interface, disconnect from the host */
+ USB_ShutDown();
/* Enable the watchdog and force a timeout to reset the AVR */
wdt_enable(WDTO_250MS);