Statistics
| Branch: | Tag: | Revision:

root / LUFA / Common / BoardTypes.h @ 978b99e5

History | View | Annotate | Download (7.02 KB)

1
/*
2
             LUFA Library
3
     Copyright (C) Dean Camera, 2011.
4

5
  dean [at] fourwalledcubicle [dot] com
6
           www.lufa-lib.org
7
*/
8

    
9
/*
10
  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)
11

12
  Permission to use, copy, modify, distribute, and sell this
13
  software and its documentation for any purpose is hereby granted
14
  without fee, provided that the above copyright notice appear in
15
  all copies and that both that the copyright notice and this
16
  permission notice and warranty disclaimer appear in supporting
17
  documentation, and that the name of the author not be used in
18
  advertising or publicity pertaining to distribution of the
19
  software without specific, written prior permission.
20

21
  The author disclaim all warranties with regard to this
22
  software, including all implied warranties of merchantability
23
  and fitness.  In no event shall the author be liable for any
24
  special, indirect or consequential damages or any damages
25
  whatsoever resulting from loss of use, data or profits, whether
26
  in an action of contract, negligence or other tortious action,
27
  arising out of or in connection with the use or performance of
28
  this software.
29
*/
30

    
31
/** \file
32
 *  \brief Supported pre-made board hardware defines.
33
 *
34
 *  \copydetails Group_BoardTypes
35
 *
36
 *  \note Do not include this file directly, rather include the Common.h header file instead to gain this file's
37
 *        functionality.
38
 */
39

    
40
/** \ingroup Group_Common
41
 *  \defgroup Group_BoardTypes Board Types
42
 *  \brief Supported pre-made board hardware defines.
43
 *
44
 *  Board macros for indicating the chosen physical board hardware to the library. These macros should be used when
45
 *  defining the \c BOARD token to the chosen hardware via the \c -D switch in the project makefile. If a custom
46
 *  board is used, the \ref BOARD_NONE or \ref BOARD_USER values should be selected.
47
 *
48
 *  @{
49
 */
50

    
51
#ifndef __LUFA_BOARDTYPES_H__
52
#define __LUFA_BOARDTYPES_H__
53

    
54
        /* Preprocessor Checks: */
55
                #if !defined(__INCLUDE_FROM_COMMON_H)
56
                        #error Do not include this file directly. Include LUFA/Common/Common.h instead to gain this functionality.
57
                #endif
58

    
59
        /* Public Interface - May be used in end-application: */
60
                /* Macros: */
61
                        /** Selects the USBKEY specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
62
                        #define BOARD_USBKEY        0
63

    
64
                        /** Selects the STK525 specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
65
                        #define BOARD_STK525        1
66

    
67
                        /** Selects the STK526 specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
68
                        #define BOARD_STK526        2
69

    
70
                        /** Selects the RZUSBSTICK specific board drivers, including the driver for the boards LEDs. */
71
                        #define BOARD_RZUSBSTICK    3
72

    
73
                        /** Selects the ATAVRUSBRF01 specific board drivers, including the driver for the board LEDs. */
74
                        #define BOARD_ATAVRUSBRF01  4
75

    
76
                        /** Selects the user-defined board drivers, which should be placed in the user project's folder
77
                         *  under a directory named \c /Board/. Each board driver should be named identically to the LUFA
78
                         *  master board driver (i.e., driver in the \c LUFA/Drivers/Board directory) so that the library
79
                         *  can correctly identify it.
80
                         */
81
                        #define BOARD_USER          5
82

    
83
                        /** Selects the BUMBLEB specific board drivers, using the officially recommended peripheral layout. */
84
                        #define BOARD_BUMBLEB       6
85

    
86
                        /** Selects the XPLAIN (Revision 2 or newer) specific board drivers, including LED and Dataflash driver. */
87
                        #define BOARD_XPLAIN        7
88

    
89
                        /** Selects the XPLAIN (Revision 1) specific board drivers, including LED and Dataflash driver. */
90
                        #define BOARD_XPLAIN_REV1   8
91

    
92
                        /** Selects the EVK527 specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
93
                        #define BOARD_EVK527        9
94

    
95
                        /** Disables board drivers when operation will not be adversely affected (e.g. LEDs) - use of board drivers
96
                         *  such as the Joystick driver, where the removal would adversely affect the code's operation is still disallowed. */
97
                        #define BOARD_NONE          10
98

    
99
                        /** Selects the Teensy (all versions) specific board drivers, including the driver for the board LEDs. */
100
                        #define BOARD_TEENSY        11
101

    
102
                        /** Selects the USBTINY MKII specific board drivers, including the Button and LEDs drivers. */
103
                        #define BOARD_USBTINYMKII   12
104

    
105
                        /** Selects the Benito specific board drivers, including the Button and LEDs drivers. */
106
                        #define BOARD_BENITO        13
107

    
108
                        /** Selects the JM-DB-U2 specific board drivers, including the Button and LEDs drivers. */
109
                        #define BOARD_JMDBU2        14
110

    
111
                        /** Selects the Olimex AVR-USB-162 specific board drivers, including the Button and LEDs drivers. */
112
                        #define BOARD_OLIMEX162     15
113

    
114
                        /** Selects the UDIP specific board drivers, including the Button and LEDs drivers. */
115
                        #define BOARD_UDIP          16
116

    
117
                        /** Selects the BUI specific board drivers, including the driver for the board LEDs. */
118
                        #define BOARD_BUI           17
119

    
120
                        /** Selects the Arduino Uno specific board drivers, including the driver for the board LEDs. */
121
                        #define BOARD_UNO           18
122

    
123
                        /** Selects the Busware CUL V3 specific board drivers, including the Button and LEDs drivers. */
124
                        #define BOARD_CULV3         19
125

    
126
                        /** Selects the Blackcat USB JTAG specific board drivers, including the driver for the board LEDs. */
127
                        #define BOARD_BLACKCAT      20
128

    
129
                        /** Selects the Maximus specific board drivers, including the driver for the board LEDs. */
130
                        #define BOARD_MAXIMUS       21
131

    
132
                        /** Selects the Minimus specific board drivers, including the Button and LEDs drivers. */
133
                        #define BOARD_MINIMUS       22
134

    
135
                        /** Selects the Adafruit U4 specific board drivers, including the Button driver. */
136
                        #define BOARD_ADAFRUITU4    23
137

    
138
                        /** Selects the Microsin AVR-USB162 specific board drivers, including the Button and LEDs drivers. */
139
                        #define BOARD_MICROSIN162   24
140

    
141
                        /** Selects the Kernel Concepts USBFOO specific board drivers, including the Button and LEDs drivers. */
142
                        #define BOARD_USBFOO        25
143
                        
144
                        /** Selects the Sparkfun ATMEGA8U2 specific board drivers, including the driver for the board LEDs. */
145
                        #define BOARD_SPARKFUN8U2   26
146

    
147
                        /** Selects the Atmel EVK1101 specific board drivers, including the Button, Joystick and LED drivers. */
148
                        #define BOARD_EVK1101       27
149
                        
150
                        /** Selects the Busware TUL specific board drivers, including the Button and LED drivers. */
151
                        #define BOARD_TUL           28
152

    
153
                        /** Selects the Atmel EVK1100 specific board drivers, including the Button, Joystick and LED drivers. */
154
                        #define BOARD_EVK1100       29
155

    
156
                        /** Selects the Atmel EVK1104 specific board drivers, including the Button and LED drivers. */
157
                        #define BOARD_EVK1104       30
158
                        
159
                        #if !defined(__DOXYGEN__)
160
                                #define BOARD_          BOARD_NONE
161

    
162
                                #if !defined(BOARD)
163
                                        #define BOARD       BOARD_NONE
164
                                #endif
165
                        #endif
166

    
167
#endif
168

    
169
/** @} */
170