aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-26 10:45:33 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-26 10:45:33 +0000
commit05fa6e0c43e542459000c7ebe0b10cbe24c7f5d9 (patch)
tree76d4563fe63f97637e768471a10b9b6b51c5cf22 /Demos/Host
parentcbbd3d746acef02a4afd562652a2ba71b24dfd6f (diff)
downloadlufa-05fa6e0c43e542459000c7ebe0b10cbe24c7f5d9.tar.gz
lufa-05fa6e0c43e542459000c7ebe0b10cbe24c7f5d9.tar.bz2
lufa-05fa6e0c43e542459000c7ebe0b10cbe24c7f5d9.zip
Corrected new Pipe_IsEndpointBound() function.
Completed host CDC class driver enumeration code.
Diffstat (limited to 'Demos/Host')
-rw-r--r--Demos/Host/ClassDriver/CDCHost/CDCHost.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.c b/Demos/Host/ClassDriver/CDCHost/CDCHost.c
index 65f490f28..7881d3cb1 100644
--- a/Demos/Host/ClassDriver/CDCHost/CDCHost.c
+++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.c
@@ -54,6 +54,7 @@ USB_ClassInfo_CDC_Host_t VirtualSerial_CDC_Interface =
// Leave all state values to their defaults
}
};
+
/** Main program entry point. This routine configures the hardware required by the application, then
* starts the scheduler to run the application tasks.
@@ -71,7 +72,9 @@ int main(void)
switch (USB_HostState)
{
case HOST_STATE_Addressed:
- if (!(CDC_Host_ConfigurePipes(&VirtualSerial_CDC_Interface)))
+ LEDs_SetAllLEDs(LEDMASK_USB_ENUMERATING);
+
+ if (CDC_Host_ConfigurePipes(&VirtualSerial_CDC_Interface, 512) != CDC_ENUMERROR_NoError)
{
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
@@ -88,9 +91,6 @@ int main(void)
USB_HostState = HOST_STATE_Configured;
break;
case HOST_STATE_Configured:
- USB_HostState = HOST_STATE_Ready;
- break;
- case HOST_STATE_Ready:
break;
}