aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Common/BoardTypes.h
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-02-04 02:27:09 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2010-02-04 02:27:09 +0000
commit685b86dd98950e5b00822b87ab9753cfeba728b5 (patch)
tree2bbdfa3a850b212b503ab18812291d391061a0b7 /LUFA/Common/BoardTypes.h
parentca954b9f1a6d89e97b36fd4b0a4fdf397e47ba78 (diff)
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1110 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Common/BoardTypes.h')
-rw-r--r--LUFA/Common/BoardTypes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/LUFA/Common/BoardTypes.h b/LUFA/Common/BoardTypes.h
index ccbd4750..10e31ac1 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