From 8c6c27d88bb40ecf55f369fc4499ec990d2d93d2 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 25 Nov 2009 03:26:57 +0000 Subject: Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() macro for setting a pipe's direction. Fixed CDCHost failing on devices with bidirectional endpoints. --- Projects/XPLAINBridge/XPLAINBridge.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Projects/XPLAINBridge/XPLAINBridge.c') diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c index 68cca5446..6d2556e2b 100644 --- a/Projects/XPLAINBridge/XPLAINBridge.c +++ b/Projects/XPLAINBridge/XPLAINBridge.c @@ -117,13 +117,17 @@ void SetupHardware(void) /* Hardware Initialization */ SoftUART_Init(); + LEDs_Init(); USB_Init(); } /** Event handler for the library USB Configuration Changed event. */ void EVENT_USB_Device_ConfigurationChanged(void) { - CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface); + LEDs_SetAllLEDs(LEDS_LED1); + + if (!(CDC_Device_ConfigureEndpoints(&VirtualSerial_CDC_Interface))) + LEDs_SetAllLEDs(LEDS_NO_LEDS); } /** Event handler for the library USB Unhandled Control Request event. */ -- cgit v1.2.3