aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-07 05:30:19 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-07 05:30:19 +0000
commit526e398986583e2fb65c0a36a2fbf2ce153446e5 (patch)
treea8da94130fb3c52b5c15669e3fd67097bea19873 /LUFA/Drivers/USB/LowLevel
parent2bd88ebc4f37baf81d550e79b3e3118b0843e61c (diff)
downloadlufa-526e398986583e2fb65c0a36a2fbf2ce153446e5.tar.gz
lufa-526e398986583e2fb65c0a36a2fbf2ce153446e5.tar.bz2
lufa-526e398986583e2fb65c0a36a2fbf2ce153446e5.zip
Fixed inability to enumerate any devices while in host mode (broken in a previous commit).
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel')
-rw-r--r--LUFA/Drivers/USB/LowLevel/DevChapter9.c2
-rw-r--r--LUFA/Drivers/USB/LowLevel/Host.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
index f02d32ba3..f02bb56a0 100644
--- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c
+++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
@@ -165,7 +165,7 @@ static void USB_Device_SetConfiguration(void)
void USB_Device_GetConfiguration(void)
{
- Endpoint_ClearSETUP();
+ Endpoint_ClearSETUP();
Endpoint_Write_Byte(USB_ConfigurationNumber);
diff --git a/LUFA/Drivers/USB/LowLevel/Host.h b/LUFA/Drivers/USB/LowLevel/Host.h
index b1d60afb5..9ce995f84 100644
--- a/LUFA/Drivers/USB/LowLevel/Host.h
+++ b/LUFA/Drivers/USB/LowLevel/Host.h
@@ -60,7 +60,7 @@
* and that the address used is not important (other than the fact that it is non-zero), a
* fixed value is specified by the library.
*/
- #define USB_HOST_DEVICEADDRESS 1
+ #define USB_HOST_DEVICEADDRESS 1
#if !defined(USB_HOST_TIMEOUT_MS) || defined(__DOXYGEN__)
/** Constant for the maximum software timeout period of sent USB control transactions to an attached
@@ -244,7 +244,7 @@
#define USB_Host_HostMode_On() MACROS{ USBCON |= (1 << HOST); }MACROE
#define USB_Host_HostMode_Off() MACROS{ USBCON &= ~(1 << HOST); }MACROE
- #define USB_Host_VBUS_Auto_Enable() MACROS{ OTGCON &= ~(1 << VBUSHWC); UHWCON |= (1 << UVCONE); }MACROE
+ #define USB_Host_VBUS_Auto_Enable() MACROS{ OTGCON &= ~(1 << VBUSHWC); UHWCON |= (1 << UVCONE); }MACROE
#define USB_Host_VBUS_Manual_Enable() MACROS{ OTGCON |= (1 << VBUSHWC); UHWCON &= ~(1 << UVCONE); DDRE |= (1 << 7); }MACROE
#define USB_Host_VBUS_Auto_On() MACROS{ OTGCON |= (1 << VBUSREQ); }MACROE