diff options
author | tmk <nobody@nowhere> | 2010-11-18 22:35:49 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-11-18 22:35:49 +0900 |
commit | 9019c901dd7b4e37006eb1f0442a57dacc0b3f0c (patch) | |
tree | 0a60939e84dd4a5af9e3ddae7acd5cce32266fb4 /usb.h | |
parent | 02d955e9fecda610e9cb7f5317262b907614bf31 (diff) |
add system controls(power down/wake up) from generic desktop page(HID)
Diffstat (limited to 'usb.h')
-rw-r--r-- | usb.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); @@ -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 |