Ensure that USB_DEVICE_ONLY or USB_HOST_ONLY is properly set for devices that physica...
[pub/USBasp.git] / LUFA / Drivers / Board / AVR8 / USB2AX / Buttons.h
index bbb1b5c..73d05a5 100644 (file)
@@ -1,13 +1,13 @@
 /*\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
-  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
  *  Board specific Buttons driver header for the Paranoid Studio USB2AX (http://paranoidstudio.assembla.com/wiki/show/paranoidstudio/USB2AX).\r
  *\r
+ *  <table>\r
+ *    <tr><th>Name</th><th>Info</th><th>Active Level</th><th>Port Pin</th></tr>\r
+ *    <tr><td>BUTTONS_BUTTON1</td><td>HWB Button</td><td>Low</td><td>PORTD.7</td></tr>\r
+ *  </table>\r
+ *\r
  *  @{\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
 \r
 /** @} */\r
 \r
+