From 15f84bb8f5b910de40f081ee5e8ed847c592ea17 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 4 Feb 2010 02:27:09 +0000 Subject: 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. --- LUFA/Common/BoardTypes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'LUFA/Common') 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 -- cgit v1.2.3