]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - usb.h
added PS/2 to USB converter use V-USB as protocol stack
[max/tmk_keyboard.git] / usb.h
diff --git a/usb.h b/usb.h
index cb2f6a223289147faa89bd329e57532cc0ae4433..85e0e33dfb01d9a8849e8d432d5b869d05e07353 100644 (file)
--- a/usb.h
+++ b/usb.h
@@ -2,11 +2,16 @@
 #define  USB_H 1
 
 #include <stdint.h>
+#include <stdbool.h>
 #include <avr/io.h>
 
 
+extern bool remote_wakeup;
+extern bool suspend;
+
 void usb_init(void);                   // initialize everything
 uint8_t usb_configured(void);          // is the USB port configured
+void usb_remote_wakeup(void);
 
 
 
@@ -78,5 +83,16 @@ uint8_t usb_configured(void);                // is the USB port configured
 #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
+
+// LEDS
+#define USB_LED_NUM_LOCK                0
+#define USB_LED_CAPS_LOCK               1
+#define USB_LED_SCROLL_LOCK             2
+#define USB_LED_COMPOSE                 3
+#define USB_LED_KANA                    4
 
 #endif