aboutsummaryrefslogtreecommitdiffstats
path: root/Projects
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-11-25 03:26:57 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-11-25 03:26:57 +0000
commit8c6c27d88bb40ecf55f369fc4499ec990d2d93d2 (patch)
tree21783dc9715b4cd11b1f8ba0a19f28e562cd1805 /Projects
parentc05c7c7df46a0377db8a72cb32f06aa40153d3e1 (diff)
downloadlufa-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')
-rw-r--r--Projects/XPLAINBridge/XPLAINBridge.c6
-rw-r--r--Projects/XPLAINBridge/XPLAINBridge.h1
-rw-r--r--Projects/XPLAINBridge/makefile2
3 files changed, 7 insertions, 2 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. */
diff --git a/Projects/XPLAINBridge/XPLAINBridge.h b/Projects/XPLAINBridge/XPLAINBridge.h
index 1d1e61db6..62dcf22be 100644
--- a/Projects/XPLAINBridge/XPLAINBridge.h
+++ b/Projects/XPLAINBridge/XPLAINBridge.h
@@ -47,6 +47,7 @@
#include "Lib/SoftUART.h"
#include <LUFA/Version.h>
+ #include <LUFA/Drivers/Board/LEDs.h>
#include <LUFA/Drivers/USB/USB.h>
#include <LUFA/Drivers/USB/Class/CDC.h>
diff --git a/Projects/XPLAINBridge/makefile b/Projects/XPLAINBridge/makefile
index 4a15ba144..b6b6cc102 100644
--- a/Projects/XPLAINBridge/makefile
+++ b/Projects/XPLAINBridge/makefile
@@ -66,7 +66,7 @@ MCU = at90usb1287
# Target board (see library "Board Types" documentation, USER or blank for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
-BOARD = USER
+BOARD = XPLAIN
# Processor frequency.