Add new ARCH option to the makefiles to (eventually) specify the target device architecture. Update non-usb peripheral drivers to reflect future multiple architecture support.

This commit is contained in:
Dean Camera 2011-02-19 18:37:22 +00:00
parent 100a197d0e
commit 3d4d8e7f62
196 changed files with 1271 additions and 730 deletions

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_ADAFRUITU4 ADAFRUITU4
* \defgroup Group_LEDs_ADAFRUITU4 ADAFRUITU4
*
* Board specific LED driver header for the Adafruit U4 Breakout board (http://ladyada.net/products/atmega32u4breakout).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_ATAVRUSBRF01 ATAVRUSBRF01
* \defgroup Group_Buttons_ATAVRUSBRF01 ATAVRUSBRF01
*
* Board specific Buttons driver header for the Atmel ATAVRUSBRF01.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_ATAVRUSBRF01 ATAVRUSBRF01
* \defgroup Group_LEDs_ATAVRUSBRF01 ATAVRUSBRF01
*
* Board specific LED driver header for the Atmel ATAVRUSBRF01.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_BENITO BENITO
* \defgroup Group_Buttons_BENITO BENITO
*
* Board specific Buttons driver header for the Tempusdictum Benito (http://dorkbotpdx.org/wiki/benito).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_BENITO BENITO
* \defgroup Group_LEDs_BENITO BENITO
*
* Board specific LED driver header for the Tempusdictum Benito (http://dorkbotpdx.org/wiki/benito).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_BLACKCAT BLACKCAT
* \defgroup Group_LEDs_BLACKCAT BLACKCAT
*
* Board specific LED driver header for the TCNISO Blackcat USB JTAG (http://www.embeddedcomputers.net/products/BlackcatUSB/.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_BUI BUI
* \defgroup Group_LEDs_BUI BUI
*
* Board specific LED driver header for the Busware BUI (http://www.busware.de/tiki-index.php?page=BUI).
*

View file

@ -41,7 +41,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_BUMBLEB BUMBLEB
* \defgroup Group_Buttons_BUMBLEB BUMBLEB
*
* Board specific buttons driver header for the Fletchtronics BUMBLEB (http://fletchtronics.net/bumble-b). The BUMBLEB
* third-party board does not include any on-board peripherals, but does have an officially recommended external peripheral

View file

@ -41,7 +41,7 @@
*/
/** \ingroup Group_Joystick
* @defgroup Group_Joystick_BUMBLEB BUMBLEB
* \defgroup Group_Joystick_BUMBLEB BUMBLEB
*
* Board specific joystick driver header for the Fletchtronics BUMBLEB (http://fletchtronics.net/bumble-b). The BUMBLEB
* third-party board does not include any on-board peripherals, but does have an officially recommended external peripheral

View file

@ -41,7 +41,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_BUMBLEB BUMBLEB
* \defgroup Group_LEDs_BUMBLEB BUMBLEB
*
* Board specific LED driver header for the Fletchtronics BUMBLEB (http://fletchtronics.net/bumble-b). The BUMBLEB
* third-party board does not include any on-board peripherals, but does have an officially recommended external

View file

@ -44,7 +44,7 @@
*/
/** \ingroup Group_BoardDrivers
* @defgroup Group_Buttons Buttons Driver - LUFA/Drivers/Board/Buttons.h
* \defgroup Group_Buttons Buttons Driver - LUFA/Drivers/Board/Buttons.h
*
* \section Sec_Dependencies Module Source Dependencies
* The following files must be built with any user project that uses this module:
@ -125,10 +125,8 @@
#include "MINIMUS/Buttons.h"
#elif (BOARD == BOARD_MICROSIN162)
#include "MICROSIN162/Buttons.h"
#elif (BOARD == BOARD_USER)
#include "Board/Buttons.h"
#else
#error The selected board does not contain any GPIO buttons.
#include "Board/Buttons.h"
#endif
/* Pseudo-Functions for Doxygen: */

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_CULV3 CULV3
* \defgroup Group_LEDs_CULV3 CULV3
*
* Board specific LED driver header for the Busware CUL V3 (http://busware.de/tiki-index.php?page=CUL).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_CULV3 CULV3
* \defgroup Group_LEDs_CULV3 CULV3
*
* Board specific LED driver header for the Busware CUL V3 (http://busware.de/tiki-index.php?page=CUL).
*

View file

@ -44,7 +44,7 @@
*/
/** \ingroup Group_BoardDrivers
* @defgroup Group_Dataflash Dataflash Driver - LUFA/Drivers/Board/Dataflash.h
* \defgroup Group_Dataflash Dataflash Driver - LUFA/Drivers/Board/Dataflash.h
*
* \section Sec_Dependencies Module Source Dependencies
* The following files must be built with any user project that uses this module:
@ -123,8 +123,8 @@
#endif
/* Includes: */
#include "../Peripheral/SPI.h"
#include "../../Common/Common.h"
#include "../Peripheral/SPI.h"
/* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus)
@ -247,10 +247,8 @@
#include "XPLAIN/Dataflash.h"
#elif (BOARD == BOARD_EVK527)
#include "EVK527/Dataflash.h"
#elif (BOARD == BOARD_USER)
#include "Board/Dataflash.h"
#else
#error The selected board does not contain a dataflash IC.
#include "Board/Dataflash.h"
#endif
/* Disable C linkage for C++ Compilers: */

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash_EVK527
* @defgroup Group_Dataflash_EVK527_AT45DB321C AT45DB321C
* \defgroup Group_Dataflash_EVK527_AT45DB321C AT45DB321C
*
* Board specific Dataflash commands header for the AT45DB321C as mounted on the Atmel EVK527.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_EVK527 EVK527
* \defgroup Group_Buttons_EVK527 EVK527
*
* Board specific Buttons driver header for the Atmel EVK527.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash
* @defgroup Group_Dataflash_EVK527 EVK527
* \defgroup Group_Dataflash_EVK527 EVK527
*
* Board specific Dataflash driver header for the Atmel EVK527.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Joystick
* @defgroup Group_Joystick_EVK527 EVK527
* \defgroup Group_Joystick_EVK527 EVK527
*
* Board specific joystick driver header for the Atmel EVK527.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_EVK527 EVK527
* \defgroup Group_LEDs_EVK527 EVK527
*
* Board specific LED driver header for the Atmel EVK527.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_JMDBU2 JMDBU2
* \defgroup Group_Buttons_JMDBU2 JMDBU2
*
* Board specific Buttons driver header for the Mattairtech JM-DB-U2 (http://u2.mattair.net/index.html).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_JMDBU2 JMDBU2
* \defgroup Group_LEDs_JMDBU2 JMDBU2
*
* Board specific LED driver header for the Mattairtech JM-DB-U2 (http://u2.mattair.net/index.html).
*

View file

@ -44,7 +44,7 @@
*/
/** \ingroup Group_BoardDrivers
* @defgroup Group_Joystick Joystick Driver - LUFA/Drivers/Board/Joystick.h
* \defgroup Group_Joystick Joystick Driver - LUFA/Drivers/Board/Joystick.h
*
* \section Sec_Dependencies Module Source Dependencies
* The following files must be built with any user project that uses this module:
@ -113,10 +113,8 @@
#include "BUMBLEB/Joystick.h"
#elif (BOARD == BOARD_EVK527)
#include "EVK527/Joystick.h"
#elif (BOARD == BOARD_USER)
#include "Board/Joystick.h"
#else
#error The selected board does not contain a joystick.
#include "Board/Joystick.h"
#endif
/* Pseudo-Functions for Doxygen: */

View file

@ -44,7 +44,7 @@
*/
/** \ingroup Group_BoardDrivers
* @defgroup Group_LEDs LEDs Driver - LUFA/Drivers/Board/LEDs.h
* \defgroup Group_LEDs LEDs Driver - LUFA/Drivers/Board/LEDs.h
*
* \section Sec_Dependencies Module Source Dependencies
* The following files must be built with any user project that uses this module:
@ -165,7 +165,7 @@
#include "MICROSIN162/LEDs.h"
#elif (BOARD == BOARD_SPARKFUN8U2)
#include "SPARKFUN8U2/LEDs.h"
#elif (BOARD == BOARD_USER)
#else
#include "Board/LEDs.h"
#endif

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_MAXIMUS MAXIMUS
* \defgroup Group_LEDs_MAXIMUS MAXIMUS
*
* Board specific LED driver header for the Maximus (http://www.avrusb.com/).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_MICROSIN162 MICROSIN162
* \defgroup Group_Buttons_MICROSIN162 MICROSIN162
*
* Board specific Buttons driver header for the Microsin AVR-USB162 board (http://microsin.ru/content/view/685/44/).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_MICROSIN162 MICROSIN162
* \defgroup Group_LEDs_MICROSIN162 MICROSIN162
*
* Board specific LED driver header for the Microsin AVR-USB162 board (http://microsin.ru/content/view/685/44/).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_MINIMUS MINIMUS
* \defgroup Group_Buttons_MINIMUS MINIMUS
*
* Board specific Buttons driver header for the MINIMUS.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_MINIMUS MINIMUS
* \defgroup Group_LEDs_MINIMUS MINIMUS
*
* Board specific LED driver header for the Minimus USB (http://www.minimususb.com/).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_OLIMEX162 OLIMEX162
* \defgroup Group_Buttons_OLIMEX162 OLIMEX162
*
* Board specific Buttons driver header for the Olimex AVR-USB-162 Development Board (http://www.olimex.com/dev/avr-usb-162.html).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_OLIMEX162 OLIMEX162
* \defgroup Group_LEDs_OLIMEX162 OLIMEX162
*
* Board specific LED driver header for the Olimex AVR-USB-162 (http://www.olimex.com/dev/avr-usb-162.html).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_RZUSBSTICK RZUSBSTICK
* \defgroup Group_LEDs_RZUSBSTICK RZUSBSTICK
*
* Board specific LED driver header for the Atmel RZUSBSTICK.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_SPARKFUN8U2 SPARKFUN8U2
* \defgroup Group_LEDs_SPARKFUN8U2 SPARKFUN8U2
*
* Board specific LED driver header for the Sparkfun ATMEGA8U2 breakout board (http://www.sparkfun.com/products/10277).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash_STK525
* @defgroup Group_Dataflash_STK525_AT45DB321C AT45DB321C
* \defgroup Group_Dataflash_STK525_AT45DB321C AT45DB321C
*
* Board specific Dataflash commands header for the AT45DB321C as mounted on the Atmel STK525.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_STK525 STK525
* \defgroup Group_Buttons_STK525 STK525
*
* Board specific Buttons driver header for the Atmel STK525.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash
* @defgroup Group_Dataflash_STK525 STK525
* \defgroup Group_Dataflash_STK525 STK525
*
* Board specific Dataflash driver header for the Atmel STK525.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Joystick
* @defgroup Group_Joystick_STK525 STK525
* \defgroup Group_Joystick_STK525 STK525
*
* Board specific joystick driver header for the Atmel STK525.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_STK525 STK525
* \defgroup Group_LEDs_STK525 STK525
*
* Board specific LED driver header for the Atmel STK525.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash_STK526
* @defgroup Group_Dataflash_STK526_AT45DB642D AT45DB642D
* \defgroup Group_Dataflash_STK526_AT45DB642D AT45DB642D
*
* Board specific Dataflash commands header for the AT45DB642D as mounted on the Atmel STK526.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_STK526 STK526
* \defgroup Group_Buttons_STK526 STK526
*
* Board specific Buttons driver header for the Atmel STK526.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash
* @defgroup Group_Dataflash_STK526 STK526
* \defgroup Group_Dataflash_STK526 STK526
*
* Board specific Dataflash driver header for the Atmel STK525.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Joystick
* @defgroup Group_Joystick_STK526 STK526
* \defgroup Group_Joystick_STK526 STK526
*
* Board specific joystick driver header for the Atmel STK526.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_STK526 STK526
* \defgroup Group_LEDs_STK526 STK526
*
* Board specific LED driver header for the Atmel STK526.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_TEENSY TEENSY
* \defgroup Group_LEDs_TEENSY TEENSY
*
* Board specific LED driver header for the PJRC Teensy boards (http://www.pjrc.com/teensy/index.html).
*

View file

@ -35,7 +35,7 @@
*/
/** \ingroup Group_BoardDrivers
* @defgroup Group_Temperature Temperature Sensor Driver - LUFA/Drivers/Board/Temperature.h
* \defgroup Group_Temperature Temperature Sensor Driver - LUFA/Drivers/Board/Temperature.h
*
* \section Sec_Dependencies Module Source Dependencies
* The following files must be built with any user project that uses this module:
@ -67,8 +67,6 @@
#define __TEMPERATURE_H__
/* Includes: */
#include <avr/pgmspace.h>
#include "../../Common/Common.h"
#include "../Peripheral/ADC.h"
@ -77,7 +75,7 @@
#elif ((BOARD != BOARD_USBKEY) && (BOARD != BOARD_STK525) && \
(BOARD != BOARD_STK526) && (BOARD != BOARD_USER) && \
(BOARD != BOARD_EVK527))
#error The selected board does not contain a temperature sensor.
#error The selected board does not contain a compatible temperature sensor.
#endif
/* Enable C linkage for C++ Compilers: */

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_UDIP UDIP
* \defgroup Group_Buttons_UDIP UDIP
*
* Board specific Buttons driver header for the Linnix UDIP (http://linnix.com/udip/).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_UDIP UDIP
* \defgroup Group_LEDs_UDIP UDIP
*
* Board specific LED driver header for the Linnix UDIP (http://linnix.com/udip/).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_UNO UNO
* \defgroup Group_LEDs_UNO UNO
*
* Board specific LED driver header for the Arduino Uno (http://arduino.cc/en/Main/ArduinoBoardUno).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_USBFOO USBFOO
* \defgroup Group_Buttons_USBFOO USBFOO
*
* Board specific Buttons driver header for the Kernel Concepts USBFOO (http://shop.kernelconcepts.de/product_info.php?products_id=102).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_USBFOO USBFOO
* \defgroup Group_LEDs_USBFOO USBFOO
*
* Board specific LED driver header for the Kernel Concepts USBFOO (http://shop.kernelconcepts.de/product_info.php?products_id=102).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash_USBKEY
* @defgroup Group_Dataflash_USBKEY_AT45DB642D AT45DB642D
* \defgroup Group_Dataflash_USBKEY_AT45DB642D AT45DB642D
*
* Board specific Dataflash commands header for the AT45DB642D as mounted on the Atmel USBKEY.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_USBKEY USBKEY
* \defgroup Group_Buttons_USBKEY USBKEY
*
* Board specific Buttons driver header for the Atmel USBKEY.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash
* @defgroup Group_Dataflash_USBKEY USBKEY
* \defgroup Group_Dataflash_USBKEY USBKEY
*
* Board specific Dataflash driver header for the Atmel USBKEY board.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Joystick
* @defgroup Group_Joystick_USBKEY USBKEY
* \defgroup Group_Joystick_USBKEY USBKEY
*
* Board specific joystick driver header for the Atmel USBKEY.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_USBKEY USBKEY
* \defgroup Group_LEDs_USBKEY USBKEY
*
* Board specific LED driver header for the Atmel USBKEY.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Buttons
* @defgroup Group_Buttons_USBTINYMKII USBTINYMKII
* \defgroup Group_Buttons_USBTINYMKII USBTINYMKII
*
* Board specific Buttons driver header for Tom's USBTINY MKII (http://tom-itx.dyndns.org:81/~webpage/).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_USBTINYMKII USBTINYMKII
* \defgroup Group_LEDs_USBTINYMKII USBTINYMKII
*
* Board specific LED driver header for Tom's USBTINY MKII (http://tom-itx.dyndns.org:81/~webpage/).
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash_XPLAIN
* @defgroup Group_Dataflash_XPLAIN_AT45DB642D AT45DB642D
* \defgroup Group_Dataflash_XPLAIN_AT45DB642D AT45DB642D
*
* Board specific Dataflash commands header for the AT45DB642D as mounted on the Atmel XPLAIN.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_Dataflash
* @defgroup Group_Dataflash_XPLAIN XPLAIN
* \defgroup Group_Dataflash_XPLAIN XPLAIN
*
* Board specific Dataflash driver header for the Atmel XPLAIN.
*

View file

@ -38,7 +38,7 @@
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_XPLAIN XPLAIN
* \defgroup Group_LEDs_XPLAIN XPLAIN
*
* Board specific LED driver header for the Atmel XPLAIN.
*