diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-23 13:28:12 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-23 13:28:12 +0000 |
commit | c20a94a4e84c89debf5e7109482ede708a694a0c (patch) | |
tree | 94ec05a96fa7071bcb7eb60a30bc5ab246ef8cda /LUFA/Drivers/USB/LowLevel/LowLevel.c | |
parent | 9cec85bfd92a77a97e7d12625897de2682dfacd7 (diff) | |
download | lufa-c20a94a4e84c89debf5e7109482ede708a694a0c.tar.gz lufa-c20a94a4e84c89debf5e7109482ede708a694a0c.tar.bz2 lufa-c20a94a4e84c89debf5e7109482ede708a694a0c.zip |
Fixed USB_RemoteWakeupEnabled flag never being set (the REMOTE WAKEUP Set Feature request was not being handled).
Renamed the FEATURELESS_CONTROL_ONLY_DEVICE compile-time token to CONTROL_ONLY_DEVICE.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/LowLevel.c')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/LowLevel.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/LowLevel.c b/LUFA/Drivers/USB/LowLevel/LowLevel.c index 4df8eee3b..3994e2f11 100644 --- a/LUFA/Drivers/USB/LowLevel/LowLevel.c +++ b/LUFA/Drivers/USB/LowLevel/LowLevel.c @@ -162,7 +162,7 @@ void USB_ResetInterface(void) USB_RemoteWakeupEnabled = false;
USB_CurrentlySelfPowered = false;
#endif
-
+
if (!(USB_Options & USB_OPT_MANUAL_PLL))
{
#if defined(USB_MODIFIED_FULL_CONTROLLER)
@@ -223,7 +223,12 @@ void USB_ResetInterface(void) #if defined(USB_DEVICE_ONLY)
USB_INT_Enable(USB_INT_SUSPEND);
- USB_INT_Enable(USB_INT_EORSTI);
+ USB_INT_Enable(USB_INT_EORSTI);
+
+ #if defined(CONTROL_ONLY_DEVICE)
+ UENUM = ENDPOINT_CONTROLEP;
+ #endif
+
#elif defined(USB_HOST_ONLY)
USB_Host_HostMode_On();
@@ -240,6 +245,10 @@ void USB_ResetInterface(void) {
USB_INT_Enable(USB_INT_SUSPEND);
USB_INT_Enable(USB_INT_EORSTI);
+
+ #if defined(CONTROL_ONLY_DEVICE)
+ UENUM = ENDPOINT_CONTROLEP;
+ #endif
}
else if (USB_CurrentMode == USB_MODE_HOST)
{
|