diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-09-21 14:06:39 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-09-21 14:06:39 +0000 |
commit | c459ef69815366c11d2d00c51b75908603ed3ca1 (patch) | |
tree | bb2bcd0b0ed9fe4e8ca7a5829b00488bf93e156a /LUFA | |
parent | 5faa79a7b55312f275435c5dacf8a89a6a3d26ae (diff) | |
download | lufa-c459ef69815366c11d2d00c51b75908603ed3ca1.tar.gz lufa-c459ef69815366c11d2d00c51b75908603ed3ca1.tar.bz2 lufa-c459ef69815366c11d2d00c51b75908603ed3ca1.zip |
Oops - need to call USB_Attach() when reinitializing into USB Host mode, or no devices will be detected.
Diffstat (limited to 'LUFA')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/USBController.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/USBController.c b/LUFA/Drivers/USB/LowLevel/USBController.c index a7dbdca2f..51e560483 100644 --- a/LUFA/Drivers/USB/LowLevel/USBController.c +++ b/LUFA/Drivers/USB/LowLevel/USBController.c @@ -217,7 +217,6 @@ static void USB_Init_Host(void) USB_ControlPipeSize = PIPE_CONTROLPIPE_DEFAULT_SIZE; USB_Host_HostMode_On(); - USB_CLK_Unfreeze(); USB_Host_VBUS_Auto_Off(); USB_Host_VBUS_Manual_Enable(); @@ -225,5 +224,7 @@ static void USB_Init_Host(void) USB_INT_Enable(USB_INT_SRPI); USB_INT_Enable(USB_INT_BCERRI); + + USB_Attach(); } #endif |