Added new LEDs_Disable(), Buttons_Disable() and Joystick_Disable() functions to the...
[pub/lufa.git] / LUFA / Drivers / Board / XMEGA / A3BU_XPLAINED / Buttons.h
index 1665fa4..6f6b875 100644 (file)
                                PORTF_PIN2CTRL = PORT_OPC_PULLUP_gc;
                        }
 
+                       static inline void Buttons_Disable(void)
+                       {
+                               PORTE_OUTCLR = BUTTONS_BUTTON1;
+                               PORTF_OUTCLR = (BUTTONS_BUTTON2 | BUTTONS_BUTTON3);
+
+                               PORTE_PIN5CTRL = 0;
+                               PORTF_PIN1CTRL = 0;
+                               PORTF_PIN2CTRL = 0;
+                       }
+
                        static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;
                        static inline uint8_t Buttons_GetStatus(void)
                        {