X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=usb.h;h=594f307db81f3f871e509565663b07475b0ec7b6;hb=9019c901dd7b4e37006eb1f0442a57dacc0b3f0c;hp=cb2f6a223289147faa89bd329e57532cc0ae4433;hpb=7e3975e0ef00b2095e32595597ba054d408f249c;p=max%2Ftmk_keyboard.git diff --git a/usb.h b/usb.h index cb2f6a22..594f307d 100644 --- a/usb.h +++ b/usb.h @@ -2,11 +2,13 @@ #define USB_H 1 #include +#include #include void usb_init(void); // initialize everything uint8_t usb_configured(void); // is the USB port configured +void usb_remote_wakeup(void); @@ -78,5 +80,13 @@ 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 + + +extern bool remote_wakeup; +extern bool suspend; #endif