diff options
Diffstat (limited to 'Projects')
-rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.c | 6 | ||||
-rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.h | 1 | ||||
-rw-r--r-- | Projects/XPLAINBridge/makefile | 2 |
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.
|