Fixed PDI programming mode in the AVRISP programmer project not exiting programming...
[pub/USBasp.git] / LUFA / Drivers / Board / LEDs.h
index 5214fad..94fbf3c 100644 (file)
@@ -1,13 +1,13 @@
 /*\r
              LUFA Library\r
-     Copyright (C) Dean Camera, 2009.\r
+     Copyright (C) Dean Camera, 2010.\r
               \r
   dean [at] fourwalledcubicle [dot] com\r
       www.fourwalledcubicle.com\r
 */\r
 \r
 /*\r
-  Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Permission to use, copy, modify, distribute, and sell this \r
   software and its documentation for any purpose is hereby granted\r
 \r
        /* Macros: */\r
        #if !defined(__DOXYGEN__)\r
+               #define __INCLUDE_FROM_LEDS_H\r
                #define INCLUDE_FROM_LEDS_H\r
        #endif\r
        \r
        /* Includes: */\r
        #include "../../Common/Common.h"\r
 \r
-       #if !defined(BOARD)\r
-               #error BOARD must be set in makefile to a value specified in BoardTypes.h.\r
+       #if (BOARD == BOARD_NONE)\r
+               static inline void LEDs_Init(void) {};\r
+               static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) {};\r
+               static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask) {};\r
+               static inline void LEDs_SetAllLEDs(const uint8_t LEDMask) {};\r
+               static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) {};\r
+               static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) {};\r
+               static inline uint8_t LEDs_GetLEDs(void) { return 0; }\r
        #elif (BOARD == BOARD_USBKEY)\r
                #include "USBKEY/LEDs.h"\r
        #elif (BOARD == BOARD_STK525)\r