Add support for the Micropendous (Arduino-like) series of boards (revisions 1 and 2).
[pub/lufa.git] / LUFA / Drivers / Board / AVR8 / MICROPENDOUS / Buttons.h
index cb42658..5c5825a 100644 (file)
  */\r
 \r
 /** \ingroup Group_Buttons\r
+ *  \defgroup Group_Buttons_MICROPENDOUS_REV1 MICROPENDOUS_REV1\r
+ *  \brief Board specific Button driver header for the Micropendous Arduino-like Revision 1 (https://code.google.com/p/micropendous/wiki/Micropendous).\r
+ *\r
+ *  See \ref Group_Buttons_MICROPENDOUS_32U2 for more details.\r
+ */\r
+\r
+/** \ingroup Group_Buttons\r
+ *  \defgroup Group_Buttons_MICROPENDOUS_REV2 MICROPENDOUS_REV2\r
+ *  \brief Board specific Button driver header for the Micropendous Arduino-like Revision 2 (https://code.google.com/p/micropendous/wiki/Micropendous).\r
+ *\r
+ *  See \ref Group_Buttons_MICROPENDOUS_32U2 for more details.\r
+ */\r
+\r
+/** \ingroup Group_Buttons\r
  *  \defgroup Group_Buttons_MICROPENDOUS_32U2 MICROPENDOUS_32U2\r
  *  \brief Board specific Buttons driver header for the Micropendous 32U2.\r
  *\r
                #elif (BOARD == BOARD_MICROPENDOUS_DIP)\r
                        #define _BOARD_BUTTON1_MASK             (1 << 2)\r
                        #define _BOARD_BUTTON_PORTLETTER        E\r
+               #elif (BOARD == BOARD_MICROPENDOUS_REV1)\r
+                       #define _BOARD_BUTTON1_MASK             (1 << 2)\r
+                       #define _BOARD_BUTTON_PORTLETTER        E\r
+               #elif (BOARD == BOARD_MICROPENDOUS_REV2)\r
+                       #define _BOARD_BUTTON1_MASK             (1 << 2)\r
+                       #define _BOARD_BUTTON_PORTLETTER        E\r
                #endif\r
                \r
                #define _BOARD_BUTTON_CONCAT2(Reg, Letter)  Reg ## Letter\r