From 05fa6e0c43e542459000c7ebe0b10cbe24c7f5d9 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 26 Jul 2009 10:45:33 +0000 Subject: Corrected new Pipe_IsEndpointBound() function. Completed host CDC class driver enumeration code. --- Demos/Host/ClassDriver/CDCHost/CDCHost.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Demos/Host') 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; } -- cgit v1.2.3