Keyboard firmwares for Atmel AVR and Cortex-M
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

BoardTypes.h 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /*
  2. LUFA Library
  3. Copyright (C) Dean Camera, 2012.
  4. dean [at] fourwalledcubicle [dot] com
  5. www.lufa-lib.org
  6. */
  7. /*
  8. Copyright 2012 Dean Camera (dean [at] fourwalledcubicle [dot] com)
  9. Permission to use, copy, modify, distribute, and sell this
  10. software and its documentation for any purpose is hereby granted
  11. without fee, provided that the above copyright notice appear in
  12. all copies and that both that the copyright notice and this
  13. permission notice and warranty disclaimer appear in supporting
  14. documentation, and that the name of the author not be used in
  15. advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.
  17. The author disclaim all warranties with regard to this
  18. software, including all implied warranties of merchantability
  19. and fitness. In no event shall the author be liable for any
  20. special, indirect or consequential damages or any damages
  21. whatsoever resulting from loss of use, data or profits, whether
  22. in an action of contract, negligence or other tortious action,
  23. arising out of or in connection with the use or performance of
  24. this software.
  25. */
  26. /** \file
  27. * \brief Supported pre-made board hardware defines.
  28. *
  29. * \copydetails Group_BoardTypes
  30. *
  31. * \note Do not include this file directly, rather include the Common.h header file instead to gain this file's
  32. * functionality.
  33. */
  34. /** \ingroup Group_Common
  35. * \defgroup Group_BoardTypes Board Types
  36. * \brief Supported pre-made board hardware defines.
  37. *
  38. * Board macros for indicating the chosen physical board hardware to the library. These macros should be used when
  39. * defining the \c BOARD token to the chosen hardware via the \c -D switch in the project makefile. If a custom
  40. * board is used, the \ref BOARD_NONE or \ref BOARD_USER values should be selected.
  41. *
  42. * @{
  43. */
  44. #ifndef __LUFA_BOARDTYPES_H__
  45. #define __LUFA_BOARDTYPES_H__
  46. /* Preprocessor Checks: */
  47. #if !defined(__INCLUDE_FROM_COMMON_H)
  48. #error Do not include this file directly. Include LUFA/Common/Common.h instead to gain this functionality.
  49. #endif
  50. /* Public Interface - May be used in end-application: */
  51. /* Macros: */
  52. /** Selects the user-defined board drivers, which should be placed in the user project's folder
  53. * under a directory named \c /Board/. Each board driver should be named identically to the LUFA
  54. * master board driver (i.e., driver in the \c LUFA/Drivers/Board directory) so that the library
  55. * can correctly identify it.
  56. */
  57. #define BOARD_USER 0
  58. /** Disables board drivers when operation will not be adversely affected (e.g. LEDs) - use of board drivers
  59. * such as the Joystick driver, where the removal would adversely affect the code's operation is still disallowed. */
  60. #define BOARD_NONE 1
  61. /** Selects the USBKEY specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
  62. #define BOARD_USBKEY 2
  63. /** Selects the STK525 specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
  64. #define BOARD_STK525 3
  65. /** Selects the STK526 specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
  66. #define BOARD_STK526 4
  67. /** Selects the RZUSBSTICK specific board drivers, including the driver for the boards LEDs. */
  68. #define BOARD_RZUSBSTICK 5
  69. /** Selects the ATAVRUSBRF01 specific board drivers, including the driver for the board LEDs. */
  70. #define BOARD_ATAVRUSBRF01 6
  71. /** Selects the BUMBLEB specific board drivers, using the officially recommended peripheral layout. */
  72. #define BOARD_BUMBLEB 7
  73. /** Selects the XPLAIN (Revision 2 or newer) specific board drivers, including LED and Dataflash drivers. */
  74. #define BOARD_XPLAIN 8
  75. /** Selects the XPLAIN (Revision 1) specific board drivers, including LED and Dataflash drivers. */
  76. #define BOARD_XPLAIN_REV1 9
  77. /** Selects the EVK527 specific board drivers, including Temperature, Button, Dataflash, Joystick and LED drivers. */
  78. #define BOARD_EVK527 10
  79. /** Selects the Teensy version 1.x specific board drivers, including the driver for the board LEDs. */
  80. #define BOARD_TEENSY 11
  81. /** Selects the USBTINY MKII specific board drivers, including the Button and LEDs drivers. */
  82. #define BOARD_USBTINYMKII 12
  83. /** Selects the Benito specific board drivers, including the Button and LEDs drivers. */
  84. #define BOARD_BENITO 13
  85. /** Selects the JM-DB-U2 specific board drivers, including the Button and LEDs drivers. */
  86. #define BOARD_JMDBU2 14
  87. /** Selects the Olimex AVR-USB-162 specific board drivers, including the Button and LEDs drivers. */
  88. #define BOARD_OLIMEX162 15
  89. /** Selects the UDIP specific board drivers, including the Button and LEDs drivers. */
  90. #define BOARD_UDIP 16
  91. /** Selects the BUI specific board drivers, including the driver for the board LEDs. */
  92. #define BOARD_BUI 17
  93. /** Selects the Arduino Uno specific board drivers, including the driver for the board LEDs. */
  94. #define BOARD_UNO 18
  95. /** Selects the Busware CUL V3 specific board drivers, including the Button and LEDs drivers. */
  96. #define BOARD_CULV3 19
  97. /** Selects the Blackcat USB JTAG specific board drivers, including the driver for the board LEDs. */
  98. #define BOARD_BLACKCAT 20
  99. /** Selects the Maximus specific board drivers, including the driver for the board LEDs. */
  100. #define BOARD_MAXIMUS 21
  101. /** Selects the Minimus specific board drivers, including the Button and LEDs drivers. */
  102. #define BOARD_MINIMUS 22
  103. /** Selects the Adafruit U4 specific board drivers, including the Button driver. */
  104. #define BOARD_ADAFRUITU4 23
  105. /** Selects the Microsin AVR-USB162 specific board drivers, including the Button and LEDs drivers. */
  106. #define BOARD_MICROSIN162 24
  107. /** Selects the Kernel Concepts USBFOO specific board drivers, including the Button and LEDs drivers. */
  108. #define BOARD_USBFOO 25
  109. /** Selects the Sparkfun ATMEGA8U2 specific board drivers, including the driver for the board LEDs. */
  110. #define BOARD_SPARKFUN8U2 26
  111. /** Selects the Atmel EVK1101 specific board drivers, including the Button, Joystick and LED drivers. */
  112. #define BOARD_EVK1101 27
  113. /** Selects the Busware TUL specific board drivers, including the Button and LED drivers. */
  114. #define BOARD_TUL 28
  115. /** Selects the Atmel EVK1100 specific board drivers, including the Button, Joystick and LED drivers. */
  116. #define BOARD_EVK1100 29
  117. /** Selects the Atmel EVK1104 specific board drivers, including the Button and LED drivers. */
  118. #define BOARD_EVK1104 30
  119. /** Selects the Atmel XMEGA A3BU Xplained specific board drivers, including Dataflash, Button and LED drivers. */
  120. #define BOARD_A3BU_XPLAINED 31
  121. /** Selects the Teensy version 2.x specific board drivers, including the driver for the board LEDs. */
  122. #define BOARD_TEENSY2 32
  123. /** Selects the USB2AX version 1 and 2 specific board drivers, including the Button and LEDs drivers. */
  124. #define BOARD_USB2AX 33
  125. /** Selects the USB2AX version 3 specific board drivers, including the Button and LEDs drivers. */
  126. #define BOARD_USB2AX_V3 34
  127. /** Selects the Micropendous 32U2 specific board drivers, including the Button and LED drivers. */
  128. #define BOARD_MICROPENDOUS_32U2 35
  129. /** Selects the Micropendous A specific board drivers, including the driver for the board Button. */
  130. #define BOARD_MICROPENDOUS_A 36
  131. /** Selects the Micropendous 1 specific board drivers, including the driver for the board Button. */
  132. #define BOARD_MICROPENDOUS_1 37
  133. /** Selects the Micropendous 2 specific board drivers, including the driver for the board Button. */
  134. #define BOARD_MICROPENDOUS_2 38
  135. /** Selects the Micropendous 3 specific board drivers, including the driver for the board Button. */
  136. #define BOARD_MICROPENDOUS_3 39
  137. /** Selects the Micropendous 4 specific board drivers, including the driver for the board Button. */
  138. #define BOARD_MICROPENDOUS_4 40
  139. /** Selects the Micropendous DIP specific board drivers, including the driver for the board Button. */
  140. #define BOARD_MICROPENDOUS_DIP 41
  141. /** Selects the Micropendous (Arduino-like) revision 1 specific board drivers, including the Button and LED drivers. */
  142. #define BOARD_MICROPENDOUS_REV1 42
  143. /** Selects the Micropendous (Arduino-like) revision 2 specific board drivers, including the Button and LED drivers. */
  144. #define BOARD_MICROPENDOUS_REV2 43
  145. /** Selects the XMEGA B1 Xplained specific board drivers, including the Button and LED drivers. */
  146. #define BOARD_B1_XPLAINED 44
  147. /** Selects the Bitwizard Multio specific board drivers, including the driver for the board LEDs. */
  148. #define BOARD_MULTIO 45
  149. /** Selects the Bitwizard Big-Multio specific board drivers, including the driver for the board LEDs. */
  150. #define BOARD_BIGMULTIO 46
  151. /** Selects the DorkbotPDX Duce specific board drivers, including the driver for the board LEDs. */
  152. #define BOARD_DUCE 47
  153. /** Selects the Olimex AVR-USB-32U4 specific board drivers, including the Button and LED drivers. */
  154. #define BOARD_OLIMEX32U4 48
  155. /** Selects the Olimex AVR-USB-T32U4 specific board drivers, including the Button and LED drivers. */
  156. #define BOARD_OLIMEXT32U4 49
  157. /** Selects the Olimex AVR-ISP-MK2 specific board drivers, including the Button and LED drivers. */
  158. #define BOARD_OLIMEXISPMK2 50
  159. #if !defined(__DOXYGEN__)
  160. #define BOARD_ BOARD_NONE
  161. #if !defined(BOARD)
  162. #define BOARD BOARD_NONE
  163. #endif
  164. #endif
  165. #endif
  166. /** @} */