diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-08-11 01:52:15 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-08-11 01:52:15 +0000 |
| commit | cc66bbe2322862ac9795e3551bc4394061682b5c (patch) | |
| tree | 0903f849fab0d0d26d6d5bd1af94327faebb7939 /Demos/Host/ClassDriver | |
| parent | c6be6704742328cc3b416b2bfbf6031c3388fad7 (diff) | |
Fix issue in CDC device class driver where received data the size of the data endpoint could lock up the driver.
Further work on the new CDC and HID host mode class drivers.
Reset changelog et. al. to reset development information for the new version currently under development.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@730 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Host/ClassDriver')
| -rw-r--r-- | Demos/Host/ClassDriver/CDCHost/CDCHost.c | 7 | ||||
| -rw-r--r-- | Demos/Host/ClassDriver/CDCHost/makefile | 1 | ||||
| -rw-r--r-- | Demos/Host/ClassDriver/MouseHost/MouseHost.c | 5 |
3 files changed, 12 insertions, 1 deletions
diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.c b/Demos/Host/ClassDriver/CDCHost/CDCHost.c index cf0a9f3a..7aa8deee 100644 --- a/Demos/Host/ClassDriver/CDCHost/CDCHost.c +++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.c @@ -103,6 +103,13 @@ int main(void) USB_HostState = HOST_STATE_Configured;
break;
case HOST_STATE_Configured:
+ if (CDC_Host_BytesReceived(&VirtualSerial_CDC_Interface))
+ {
+ /* Echo received bytes from the attached device through the USART */
+ while (CDC_Host_BytesReceived(&VirtualSerial_CDC_Interface))
+ putchar(CDC_Host_ReceiveByte(&VirtualSerial_CDC_Interface));
+ }
+
break;
}
diff --git a/Demos/Host/ClassDriver/CDCHost/makefile b/Demos/Host/ClassDriver/CDCHost/makefile index 4dd06ebe..9161af18 100644 --- a/Demos/Host/ClassDriver/CDCHost/makefile +++ b/Demos/Host/ClassDriver/CDCHost/makefile @@ -125,7 +125,6 @@ LUFA_PATH = ../../../.. # LUFA library compile-time options
LUFA_OPTS = -D USE_NONSTANDARD_DESCRIPTOR_NAMES
LUFA_OPTS += -D USB_HOST_ONLY
-LUFA_OPTS += -D NO_STREAM_CALLBACKS
LUFA_OPTS += -D USE_STATIC_OPTIONS="(USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)"
diff --git a/Demos/Host/ClassDriver/MouseHost/MouseHost.c b/Demos/Host/ClassDriver/MouseHost/MouseHost.c index 382b8992..65fb4893 100644 --- a/Demos/Host/ClassDriver/MouseHost/MouseHost.c +++ b/Demos/Host/ClassDriver/MouseHost/MouseHost.c @@ -105,6 +105,11 @@ int main(void) USB_HostState = HOST_STATE_Configured;
break;
case HOST_STATE_Configured:
+ if (HID_Host_ReportReceived(&Mouse_HID_Interface))
+ {
+
+ }
+
break;
}
|
