diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-27 10:31:07 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-27 10:31:07 +0000 |
commit | 5251bc6e4e312ec5c4f57c43a92ba49c19684c51 (patch) | |
tree | a48b8977bffea9ae86f3a4c28ce390a9a965098f /Demos/Host/ClassDriver/CDCHost/CDCHost.c | |
parent | 05fa6e0c43e542459000c7ebe0b10cbe24c7f5d9 (diff) | |
download | lufa-5251bc6e4e312ec5c4f57c43a92ba49c19684c51.tar.gz lufa-5251bc6e4e312ec5c4f57c43a92ba49c19684c51.tar.bz2 lufa-5251bc6e4e312ec5c4f57c43a92ba49c19684c51.zip |
Add new MouseHost Class Driver demo, unfinished, to allow for better testing of the new prototype Host Mode Class Driver framework. Flesh out start of a HID class Host mode class driver.
Diffstat (limited to 'Demos/Host/ClassDriver/CDCHost/CDCHost.c')
-rw-r--r-- | Demos/Host/ClassDriver/CDCHost/CDCHost.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.c b/Demos/Host/ClassDriver/CDCHost/CDCHost.c index 7881d3cb1..4479e4fb8 100644 --- a/Demos/Host/ClassDriver/CDCHost/CDCHost.c +++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.c @@ -76,6 +76,8 @@ int main(void) if (CDC_Host_ConfigurePipes(&VirtualSerial_CDC_Interface, 512) != CDC_ENUMERROR_NoError)
{
+ printf("Attached device is not a valid CDC device.\r\n");
+
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
break;
@@ -83,11 +85,14 @@ int main(void) if (USB_Host_SetDeviceConfiguration(1) != HOST_SENDCONTROL_Successful)
{
+ printf("Error Setting Device Configuration.\r\n");
+
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
break;
}
+ printf("CDC Device Enumerated.\r\n");
USB_HostState = HOST_STATE_Configured;
break;
case HOST_STATE_Configured:
|