]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - usb.h
add build option: NKRO_ENABLE(remove: USB_12KRO)
[max/tmk_keyboard.git] / usb.h
diff --git a/usb.h b/usb.h
index c1347f10ddc99f96ae836d541c50e8649c1a6111..594f307db81f3f871e509565663b07475b0ec7b6 100644 (file)
--- a/usb.h
+++ b/usb.h
@@ -2,11 +2,13 @@
 #define  USB_H 1
 
 #include <stdint.h>
+#include <stdbool.h>
 #include <avr/io.h>
 
 
 void usb_init(void);                   // initialize everything
 uint8_t usb_configured(void);          // is the USB port configured
+void usb_remote_wakeup(void);
 
 
 
@@ -71,9 +73,20 @@ uint8_t usb_configured(void);                // is the USB port configured
 #define HID_SET_REPORT                 9
 #define HID_SET_IDLE                   10
 #define HID_SET_PROTOCOL               11
+#define HID_REPORT_INPUT               1
+#define HID_REPORT_OUTPUT              2
+#define HID_REPORT_FEATURE             3
 // CDC (communication class device)
 #define CDC_SET_LINE_CODING            0x20
 #define CDC_GET_LINE_CODING            0x21
 #define CDC_SET_CONTROL_LINE_STATE     0x22
+// HID feature selectors
+#define DEVICE_REMOTE_WAKEUP           1
+#define ENDPOINT_HALT                  0
+#define TEST_MODE                      2
+
+
+extern bool remote_wakeup;
+extern bool suspend;
 
 #endif