Seperated out board drivers by architecture in the library internals for better organisation.

pull/1469/head
Dean Camera 14 years ago
parent e10f5b4f14
commit 910bca557c

@ -49,7 +49,7 @@
#define __LEDS_ADAFRUITU4_H__ #define __LEDS_ADAFRUITU4_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_ATAVRUSBRF01_H__ #define __BUTTONS_ATAVRUSBRF01_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_ATAVRUSBRF01_H__ #define __LEDS_ATAVRUSBRF01_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_BENITO_H__ #define __BUTTONS_BENITO_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_BENITO_H__ #define __LEDS_BENITO_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_BLACKCAT_H__ #define __LEDS_BLACKCAT_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_BUI_H__ #define __LEDS_BUI_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -51,7 +51,7 @@
#define __BUTTONS_BUMBLEB_H__ #define __BUTTONS_BUMBLEB_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -51,7 +51,7 @@
#define __JOYSTICK_BUMBLEB_H__ #define __JOYSTICK_BUMBLEB_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -51,7 +51,7 @@
#define __LEDS_BUMBLEB_H__ #define __LEDS_BUMBLEB_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_CULV3_H__ #define __BUTTONS_CULV3_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_CULV3_H__ #define __LEDS_CULV3_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_EVK527_H__ #define __BUTTONS_EVK527_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,8 @@
#define __DATAFLASH_EVK527_H__ #define __DATAFLASH_EVK527_H__
/* Includes: */ /* Includes: */
#include "../../Misc/AT45DB321C.h" #include "../../../../Common/Common.h"
#include "../../../Misc/AT45DB321C.h"
/* Preprocessor Checks: */ /* Preprocessor Checks: */
#if !defined(__INCLUDE_FROM_DATAFLASH_H) #if !defined(__INCLUDE_FROM_DATAFLASH_H)

@ -49,7 +49,7 @@
#define __JOYSTICK_EVK527_H__ #define __JOYSTICK_EVK527_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_EVK527_H__ #define __LEDS_EVK527_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_JMDBU2_H__ #define __BUTTONS_JMDBU2_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_JMDBU2_H__ #define __LEDS_JMDBU2_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_MAXIMUS_H__ #define __LEDS_MAXIMUS_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_MICROSIN162_H__ #define __BUTTONS_MICROSIN162_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_MICROSIN162_H__ #define __LEDS_MICROSIN162_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_MINIMUS_H__ #define __BUTTONS_MINIMUS_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_MINIMUS_H__ #define __LEDS_MINIMUS_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_OLIMEX162_H__ #define __BUTTONS_OLIMEX162_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_OLIMEX162_H__ #define __LEDS_OLIMEX162_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_RZUSBSTICK_H__ #define __LEDS_RZUSBSTICK_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_SPARKFUN8U2_H__ #define __LEDS_SPARKFUN8U2_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_STK525_H__ #define __BUTTONS_STK525_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,8 @@
#define __DATAFLASH_STK525_H__ #define __DATAFLASH_STK525_H__
/* Includes: */ /* Includes: */
#include "../../Misc/AT45DB321C.h" #include "../../../../Common/Common.h"
#include "../../../Misc/AT45DB321C.h"
/* Preprocessor Checks: */ /* Preprocessor Checks: */
#if !defined(__INCLUDE_FROM_DATAFLASH_H) #if !defined(__INCLUDE_FROM_DATAFLASH_H)

@ -49,7 +49,7 @@
#define __JOYSTICK_STK525_H__ #define __JOYSTICK_STK525_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_STK525_H__ #define __LEDS_STK525_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_STK526_H__ #define __BUTTONS_STK526_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,8 @@
#define __DATAFLASH_STK526_H__ #define __DATAFLASH_STK526_H__
/* Includes: */ /* Includes: */
#include "../../Misc/AT45DB642D.h" #include "../../../../Common/Common.h"
#include "../../../Misc/AT45DB642D.h"
/* Preprocessor Checks: */ /* Preprocessor Checks: */
#if !defined(__INCLUDE_FROM_DATAFLASH_H) #if !defined(__INCLUDE_FROM_DATAFLASH_H)

@ -49,7 +49,7 @@
#define __JOYSTICK_STK526_H__ #define __JOYSTICK_STK526_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_STK526_H__ #define __LEDS_STK526_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_TEENSY_H__ #define __LEDS_TEENSY_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_UDIP_H__ #define __BUTTONS_UDIP_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_UDIP_H__ #define __LEDS_UDIP_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_UNO_H__ #define __LEDS_UNO_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_USBFOO_H__ #define __BUTTONS_USBFOO_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_USBFOO_H__ #define __LEDS_USBFOO_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_USBKEY_H__ #define __BUTTONS_USBKEY_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __JOYSTICK_USBKEY_H__ #define __JOYSTICK_USBKEY_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_USBKEY_H__ #define __LEDS_USBKEY_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __BUTTONS_USBTINYMKII_H__ #define __BUTTONS_USBTINYMKII_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,7 @@
#define __LEDS_USBTINYMKII_H__ #define __LEDS_USBTINYMKII_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,7 +49,8 @@
#define __DATAFLASH_XPLAIN_H__ #define __DATAFLASH_XPLAIN_H__
/* Includes: */ /* Includes: */
#include "../../Misc/AT45DB642D.h" #include "../../../../Common/Common.h"
#include "../../../Misc/AT45DB642D.h"
/* Preprocessor Checks: */ /* Preprocessor Checks: */
#if !defined(__INCLUDE_FROM_DATAFLASH_H) #if !defined(__INCLUDE_FROM_DATAFLASH_H)

@ -49,7 +49,7 @@
#define __LEDS_XPLAIN_H__ #define __LEDS_XPLAIN_H__
/* Includes: */ /* Includes: */
#include "../../../Common/Common.h" #include "../../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -94,37 +94,37 @@
#if (BOARD == BOARD_NONE) #if (BOARD == BOARD_NONE)
#error The Board Buttons driver cannot be used if the makefile BOARD option is not set. #error The Board Buttons driver cannot be used if the makefile BOARD option is not set.
#elif (BOARD == BOARD_USBKEY) #elif (BOARD == BOARD_USBKEY)
#include "USBKEY/Buttons.h" #include "AVR8/USBKEY/Buttons.h"
#elif (BOARD == BOARD_STK525) #elif (BOARD == BOARD_STK525)
#include "STK525/Buttons.h" #include "AVR8/STK525/Buttons.h"
#elif (BOARD == BOARD_STK526) #elif (BOARD == BOARD_STK526)
#include "STK526/Buttons.h" #include "AVR8/STK526/Buttons.h"
#elif (BOARD == BOARD_ATAVRUSBRF01) #elif (BOARD == BOARD_ATAVRUSBRF01)
#include "ATAVRUSBRF01/Buttons.h" #include "AVR8/ATAVRUSBRF01/Buttons.h"
#elif (BOARD == BOARD_BUMBLEB) #elif (BOARD == BOARD_BUMBLEB)
#include "BUMBLEB/Buttons.h" #include "AVR8/BUMBLEB/Buttons.h"
#elif (BOARD == BOARD_EVK527) #elif (BOARD == BOARD_EVK527)
#include "EVK527/Buttons.h" #include "AVR8/EVK527/Buttons.h"
#elif (BOARD == BOARD_USBTINYMKII) #elif (BOARD == BOARD_USBTINYMKII)
#include "USBTINYMKII/Buttons.h" #include "AVR8/USBTINYMKII/Buttons.h"
#elif (BOARD == BOARD_BENITO) #elif (BOARD == BOARD_BENITO)
#include "BENITO/Buttons.h" #include "AVR8/BENITO/Buttons.h"
#elif (BOARD == BOARD_JMDBU2) #elif (BOARD == BOARD_JMDBU2)
#include "JMDBU2/Buttons.h" #include "AVR8/JMDBU2/Buttons.h"
#elif (BOARD == BOARD_OLIMEX162) #elif (BOARD == BOARD_OLIMEX162)
#include "OLIMEX162/Buttons.h" #include "AVR8/OLIMEX162/Buttons.h"
#elif (BOARD == BOARD_USBFOO) #elif (BOARD == BOARD_USBFOO)
#include "USBFOO/Buttons.h" #include "AVR8/USBFOO/Buttons.h"
#elif (BOARD == BOARD_UDIP) #elif (BOARD == BOARD_UDIP)
#include "UDIP/Buttons.h" #include "AVR8/UDIP/Buttons.h"
#elif (BOARD == BOARD_CULV3) #elif (BOARD == BOARD_CULV3)
#include "CULV3/Buttons.h" #include "AVR8/CULV3/Buttons.h"
#elif (BOARD == BOARD_MINIMUS) #elif (BOARD == BOARD_MINIMUS)
#include "MINIMUS/Buttons.h" #include "AVR8/MINIMUS/Buttons.h"
#elif (BOARD == BOARD_MICROSIN162) #elif (BOARD == BOARD_MICROSIN162)
#include "MICROSIN162/Buttons.h" #include "AVR8/MICROSIN162/Buttons.h"
#elif (BOARD == BOARD_EVK1101) #elif (BOARD == BOARD_EVK1101)
#include "EVK1101/Buttons.h" #include "UC3/EVK1101/Buttons.h"
#else #else
#include "Board/Buttons.h" #include "Board/Buttons.h"
#endif #endif

@ -235,17 +235,15 @@
#if (BOARD == BOARD_NONE) #if (BOARD == BOARD_NONE)
#error The Board Dataflash driver cannot be used if the makefile BOARD option is not set. #error The Board Dataflash driver cannot be used if the makefile BOARD option is not set.
#elif (BOARD == BOARD_USBKEY) #elif (BOARD == BOARD_USBKEY)
#include "USBKEY/Dataflash.h" #include "AVR8/USBKEY/Dataflash.h"
#elif (BOARD == BOARD_STK525) #elif (BOARD == BOARD_STK525)
#include "STK525/Dataflash.h" #include "AVR8/STK525/Dataflash.h"
#elif (BOARD == BOARD_STK526) #elif (BOARD == BOARD_STK526)
#include "STK526/Dataflash.h" #include "AVR8/STK526/Dataflash.h"
#elif (BOARD == BOARD_XPLAIN) #elif ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))
#include "XPLAIN/Dataflash.h" #include "AVR8/XPLAIN/Dataflash.h"
#elif (BOARD == BOARD_XPLAIN_REV1)
#include "XPLAIN/Dataflash.h"
#elif (BOARD == BOARD_EVK527) #elif (BOARD == BOARD_EVK527)
#include "EVK527/Dataflash.h" #include "AVR8/EVK527/Dataflash.h"
#else #else
#include "Board/Dataflash.h" #include "Board/Dataflash.h"
#endif #endif

@ -102,17 +102,17 @@
#if (BOARD == BOARD_NONE) #if (BOARD == BOARD_NONE)
#error The Board Joystick driver cannot be used if the makefile BOARD option is not set. #error The Board Joystick driver cannot be used if the makefile BOARD option is not set.
#elif (BOARD == BOARD_USBKEY) #elif (BOARD == BOARD_USBKEY)
#include "USBKEY/Joystick.h" #include "AVR8/USBKEY/Joystick.h"
#elif (BOARD == BOARD_STK525) #elif (BOARD == BOARD_STK525)
#include "STK525/Joystick.h" #include "AVR8/STK525/Joystick.h"
#elif (BOARD == BOARD_STK526) #elif (BOARD == BOARD_STK526)
#include "STK526/Joystick.h" #include "AVR8/STK526/Joystick.h"
#elif (BOARD == BOARD_BUMBLEB) #elif (BOARD == BOARD_BUMBLEB)
#include "BUMBLEB/Joystick.h" #include "AVR8/BUMBLEB/Joystick.h"
#elif (BOARD == BOARD_EVK527) #elif (BOARD == BOARD_EVK527)
#include "EVK527/Joystick.h" #include "AVR8/EVK527/Joystick.h"
#elif (BOARD == BOARD_EVK1101) #elif (BOARD == BOARD_EVK1101)
#include "EVK1101/Joystick.h" #include "UC3/EVK1101/Joystick.h"
#else #else
#include "Board/Joystick.h" #include "Board/Joystick.h"
#endif #endif

@ -116,55 +116,55 @@
static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) {}; static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) {};
static inline uint8_t LEDs_GetLEDs(void) { return 0; } static inline uint8_t LEDs_GetLEDs(void) { return 0; }
#elif (BOARD == BOARD_USBKEY) #elif (BOARD == BOARD_USBKEY)
#include "USBKEY/LEDs.h" #include "AVR8/USBKEY/LEDs.h"
#elif (BOARD == BOARD_STK525) #elif (BOARD == BOARD_STK525)
#include "STK525/LEDs.h" #include "AVR8/STK525/LEDs.h"
#elif (BOARD == BOARD_STK526) #elif (BOARD == BOARD_STK526)
#include "STK526/LEDs.h" #include "AVR8/STK526/LEDs.h"
#elif (BOARD == BOARD_RZUSBSTICK) #elif (BOARD == BOARD_RZUSBSTICK)
#include "RZUSBSTICK/LEDs.h" #include "AVR8/RZUSBSTICK/LEDs.h"
#elif (BOARD == BOARD_ATAVRUSBRF01) #elif (BOARD == BOARD_ATAVRUSBRF01)
#include "ATAVRUSBRF01/LEDs.h" #include "AVR8/ATAVRUSBRF01/LEDs.h"
#elif ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1)) #elif ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))
#include "XPLAIN/LEDs.h" #include "AVR8/XPLAIN/LEDs.h"
#elif (BOARD == BOARD_BUMBLEB) #elif (BOARD == BOARD_BUMBLEB)
#include "BUMBLEB/LEDs.h" #include "AVR8/BUMBLEB/LEDs.h"
#elif (BOARD == BOARD_EVK527) #elif (BOARD == BOARD_EVK527)
#include "EVK527/LEDs.h" #include "AVR8/EVK527/LEDs.h"
#elif (BOARD == BOARD_TEENSY) #elif (BOARD == BOARD_TEENSY)
#include "TEENSY/LEDs.h" #include "AVR8/TEENSY/LEDs.h"
#elif (BOARD == BOARD_USBTINYMKII) #elif (BOARD == BOARD_USBTINYMKII)
#include "USBTINYMKII/LEDs.h" #include "AVR8/USBTINYMKII/LEDs.h"
#elif (BOARD == BOARD_BENITO) #elif (BOARD == BOARD_BENITO)
#include "BENITO/LEDs.h" #include "AVR8/BENITO/LEDs.h"
#elif (BOARD == BOARD_JMDBU2) #elif (BOARD == BOARD_JMDBU2)
#include "JMDBU2/LEDs.h" #include "AVR8/JMDBU2/LEDs.h"
#elif (BOARD == BOARD_OLIMEX162) #elif (BOARD == BOARD_OLIMEX162)
#include "OLIMEX162/LEDs.h" #include "AVR8/OLIMEX162/LEDs.h"
#elif (BOARD == BOARD_USBFOO) #elif (BOARD == BOARD_USBFOO)
#include "USBFOO/LEDs.h" #include "AVR8/USBFOO/LEDs.h"
#elif (BOARD == BOARD_UDIP) #elif (BOARD == BOARD_UDIP)
#include "UDIP/LEDs.h" #include "AVR8/UDIP/LEDs.h"
#elif (BOARD == BOARD_BUI) #elif (BOARD == BOARD_BUI)
#include "BUI/LEDs.h" #include "AVR8/BUI/LEDs.h"
#elif (BOARD == BOARD_UNO) #elif (BOARD == BOARD_UNO)
#include "UNO/LEDs.h" #include "AVR8/UNO/LEDs.h"
#elif (BOARD == BOARD_CULV3) #elif (BOARD == BOARD_CULV3)
#include "CULV3/LEDs.h" #include "AVR8/CULV3/LEDs.h"
#elif (BOARD == BOARD_BLACKCAT) #elif (BOARD == BOARD_BLACKCAT)
#include "BLACKCAT/LEDs.h" #include "AVR8/BLACKCAT/LEDs.h"
#elif (BOARD == BOARD_MAXIMUS) #elif (BOARD == BOARD_MAXIMUS)
#include "MAXIMUS/LEDs.h" #include "AVR8/MAXIMUS/LEDs.h"
#elif (BOARD == BOARD_MINIMUS) #elif (BOARD == BOARD_MINIMUS)
#include "MINIMUS/LEDs.h" #include "AVR8/MINIMUS/LEDs.h"
#elif (BOARD == BOARD_ADAFRUITU4) #elif (BOARD == BOARD_ADAFRUITU4)
#include "ADAFRUITU4/LEDs.h" #include "AVR8/ADAFRUITU4/LEDs.h"
#elif (BOARD == BOARD_MICROSIN162) #elif (BOARD == BOARD_MICROSIN162)
#include "MICROSIN162/LEDs.h" #include "AVR8/MICROSIN162/LEDs.h"
#elif (BOARD == BOARD_SPARKFUN8U2) #elif (BOARD == BOARD_SPARKFUN8U2)
#include "SPARKFUN8U2/LEDs.h" #include "AVR8/SPARKFUN8U2/LEDs.h"
#elif (BOARD == BOARD_EVK1101) #elif (BOARD == BOARD_EVK1101)
#include "EVK1101/LEDs.h" #include "UC3/EVK1101/LEDs.h"
#else #else
#include "Board/LEDs.h" #include "Board/LEDs.h"
#endif #endif

@ -49,10 +49,7 @@
#define __BUTTONS_EVK1101_H__ #define __BUTTONS_EVK1101_H__
/* Includes: */ /* Includes: */
#include <avr32/io.h> #include "../../../../Common/Common.h"
#include <stdbool.h>
#include "../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,9 +49,7 @@
#define __JOYSTICK_EVK1101_H__ #define __JOYSTICK_EVK1101_H__
/* Includes: */ /* Includes: */
#include <avr32/io.h> #include "../../../../Common/Common.h"
#include "../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -49,9 +49,7 @@
#define __LEDS_EVK1101_H__ #define __LEDS_EVK1101_H__
/* Includes: */ /* Includes: */
#include <avr32/io.h> #include "../../../../Common/Common.h"
#include "../../../Common/Common.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)

@ -70,6 +70,7 @@
* a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures * a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures
* - Renamed all low level Pipe_Read_*, Pipe_Write_* and Pipe_Discard_* functions to use the number of bits instead of * - Renamed all low level Pipe_Read_*, Pipe_Write_* and Pipe_Discard_* functions to use the number of bits instead of
* a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures * a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures
* - Seperated out board drivers by architecture in the library internals for better organisation
* - Library Applications: * - Library Applications:
* - Changed the XPLAINBridge software UART to use the regular timer CTC mode instead of the alternative CTC mode * - Changed the XPLAINBridge software UART to use the regular timer CTC mode instead of the alternative CTC mode
* via the Input Capture register, to reduce user confusion * via the Input Capture register, to reduce user confusion

Loading…
Cancel
Save