Updated the AVRISP-MKII Clone programmer project to be compatible with the latest...
[pub/USBasp.git] / LUFA / Drivers / Board / AVR8 / USB2AX / Buttons.h
index bbb1b5c..9b83acf 100644 (file)
@@ -1,13 +1,13 @@
 /*\r
              LUFA Library\r
 /*\r
              LUFA Library\r
-     Copyright (C) Dean Camera, 2011.\r
+     Copyright (C) Dean Camera, 2012.\r
 \r
   dean [at] fourwalledcubicle [dot] com\r
            www.lufa-lib.org\r
 */\r
 \r
 /*\r
 \r
   dean [at] fourwalledcubicle [dot] com\r
            www.lufa-lib.org\r
 */\r
 \r
 /*\r
-  Copyright 2011  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+  Copyright 2012  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
   Permission to use, copy, modify, distribute, and sell this\r
   software and its documentation for any purpose is hereby granted\r
 \r
   Permission to use, copy, modify, distribute, and sell this\r
   software and its documentation for any purpose is hereby granted\r
                                PORTD |=  BUTTONS_BUTTON1;\r
                        }\r
 \r
                                PORTD |=  BUTTONS_BUTTON1;\r
                        }\r
 \r
+                       static inline void Buttons_Disable(void)\r
+                       {\r
+                               DDRD  &= ~BUTTONS_BUTTON1;\r
+                               PORTD &= ~BUTTONS_BUTTON1;\r
+                       }\r
+\r
                        static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;\r
                        static inline uint8_t Buttons_GetStatus(void)\r
                        {\r
                        static inline uint8_t Buttons_GetStatus(void) ATTR_WARN_UNUSED_RESULT;\r
                        static inline uint8_t Buttons_GetStatus(void)\r
                        {\r
 \r
 /** @} */\r
 \r
 \r
 /** @} */\r
 \r
+