Add XMEGA SPI peripheral driver.
[pub/lufa.git] / LUFA / Drivers / Board / XMEGA / A3BU_XPLAINED / Buttons.h
index e385465..fc99b92 100644 (file)
                #if !defined(__DOXYGEN__)\r
                        static inline void Buttons_Init(void)\r
                        {\r
-                               PORTE.OUTCLR = BUTTONS_BUTTON1;\r
-                               PORTF.OUTCLR = (BUTTONS_BUTTON2 | BUTTONS_BUTTON3);\r
+                               PORTE_OUTCLR = BUTTONS_BUTTON1;\r
+                               PORTF_OUTCLR = (BUTTONS_BUTTON2 | BUTTONS_BUTTON3);\r
                                \r
-                               PORTE.PIN5CTRL = PORT_OPC_PULLUP_gc;\r
-                               PORTF.PIN1CTRL = PORT_OPC_PULLUP_gc;\r
-                               PORTF.PIN2CTRL = PORT_OPC_PULLUP_gc;\r
+                               PORTE_PIN5CTRL = PORT_OPC_PULLUP_gc;\r
+                               PORTF_PIN1CTRL = PORT_OPC_PULLUP_gc;\r
+                               PORTF_PIN2CTRL = PORT_OPC_PULLUP_gc;\r
                        }\r
 \r
                        static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;\r
                        static inline uint8_t Buttons_GetStatus(void)\r
                        {\r
-                               return ((~PORTE.IN & BUTTONS_BUTTON1) | (~PORTF.IN & (BUTTONS_BUTTON2 | BUTTONS_BUTTON3)));\r
+                               return ((~PORTE_IN & BUTTONS_BUTTON1) | (~PORTF_IN & (BUTTONS_BUTTON2 | BUTTONS_BUTTON3)));\r
                        }\r
                #endif\r
 \r