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/Common | |
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/Common')
-rw-r--r-- | LUFA/Common/BoardTypes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/LUFA/Common/BoardTypes.h b/LUFA/Common/BoardTypes.h index ccbd4750d..10e31ac1b 100644 --- a/LUFA/Common/BoardTypes.h +++ b/LUFA/Common/BoardTypes.h @@ -89,6 +89,18 @@ /** Selects the EVK527 specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
#define BOARD_EVK527 9
+
+ /** Disables board drivers when operation will not be adversely affected (e.g. LEDs) - use of board drivers
+ * such as the Joystick driver, where the removal would adversely affect the code's operation is still disallowed. */
+ #define BOARD_NONE 10
+
+ #if !defined(__DOXYGEN__)
+ #define BOARD_ BOARD_NONE
+
+ #if !defined(BOARD)
+ #define BOARD BOARD_NONE
+ #endif
+ #endif
#endif
|