diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-25 03:26:57 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-25 03:26:57 +0000 |
commit | 8c6c27d88bb40ecf55f369fc4499ec990d2d93d2 (patch) | |
tree | 21783dc9715b4cd11b1f8ba0a19f28e562cd1805 /Projects/XPLAINBridge/XPLAINBridge.c | |
parent | c05c7c7df46a0377db8a72cb32f06aa40153d3e1 (diff) | |
download | lufa-8c6c27d88bb40ecf55f369fc4499ec990d2d93d2.tar.gz lufa-8c6c27d88bb40ecf55f369fc4499ec990d2d93d2.tar.bz2 lufa-8c6c27d88bb40ecf55f369fc4499ec990d2d93d2.zip |
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.
Diffstat (limited to 'Projects/XPLAINBridge/XPLAINBridge.c')
-rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.c | 6 |
1 files changed, 5 insertions, 1 deletions
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. */
|