diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-04 02:27:09 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-02-04 02:27:09 +0000 |
commit | 15f84bb8f5b910de40f081ee5e8ed847c592ea17 (patch) | |
tree | 2bbdfa3a850b212b503ab18812291d391061a0b7 /LUFA/Drivers/Board/LEDs.h | |
parent | f4f44f9fc11d0ee9e0dbaf3323d095af32e8b0ef (diff) | |
download | lufa-15f84bb8f5b910de40f081ee5e8ed847c592ea17.tar.gz lufa-15f84bb8f5b910de40f081ee5e8ed847c592ea17.tar.bz2 lufa-15f84bb8f5b910de40f081ee5e8ed847c592ea17.zip |
New BOARD value option BOARD_NONE (equivelent to not specifying BOARD) which will remove all board hardware drivers which do not adversely affect the code operation (currently only the LEDs driver).
Spell-check code/comments in the Webserver/AVRISP-MKII projects.
Diffstat (limited to 'LUFA/Drivers/Board/LEDs.h')
-rw-r--r-- | LUFA/Drivers/Board/LEDs.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/LUFA/Drivers/Board/LEDs.h b/LUFA/Drivers/Board/LEDs.h index 61f79ceec..222be0e65 100644 --- a/LUFA/Drivers/Board/LEDs.h +++ b/LUFA/Drivers/Board/LEDs.h @@ -76,8 +76,14 @@ /* Includes: */
#include "../../Common/Common.h"
- #if !defined(BOARD)
- #error BOARD must be set in makefile to a value specified in BoardTypes.h.
+ #if (BOARD == BOARD_NONE)
+ static inline void LEDs_Init(void) {};
+ static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask) {};
+ static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask) {};
+ static inline void LEDs_SetAllLEDs(const uint8_t LEDMask) {};
+ static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) {};
+ static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) {};
+ static inline uint8_t LEDs_GetLEDs(void) { return 0; }
#elif (BOARD == BOARD_USBKEY)
#include "USBKEY/LEDs.h"
#elif (BOARD == BOARD_STK525)
|