diff options
| author | Nick Brassel <nick@tzarc.org> | 2020-05-21 20:31:42 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-21 20:31:42 +1000 |
| commit | d1df576ece12a7627a18e1581eed482cda2dbed5 (patch) | |
| tree | 8c8415ba527681ed9d453689c435c6f06a6daa64 /tmk_core/protocol/vusb/vusb.c | |
| parent | 83ebbf57b349552038d9d9af994eb2e9528ecbc5 (diff) | |
| download | qmk_firmware-d1df576ece12a7627a18e1581eed482cda2dbed5.tar.gz qmk_firmware-d1df576ece12a7627a18e1581eed482cda2dbed5.zip | |
Allow for overriding RAW endpoint usage page and ID. (#8834)
* Allow for overriding RAW endpoint usage page and ID.
* Move usb_descriptor_common.h.
* Docs update.
Diffstat (limited to 'tmk_core/protocol/vusb/vusb.c')
| -rw-r--r-- | tmk_core/protocol/vusb/vusb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tmk_core/protocol/vusb/vusb.c b/tmk_core/protocol/vusb/vusb.c index a9f37c61b..4c8e6003f 100644 --- a/tmk_core/protocol/vusb/vusb.c +++ b/tmk_core/protocol/vusb/vusb.c | |||
| @@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 26 | #include "vusb.h" | 26 | #include "vusb.h" |
| 27 | #include "print.h" | 27 | #include "print.h" |
| 28 | #include "debug.h" | 28 | #include "debug.h" |
| 29 | #include "usb_descriptor_common.h" | ||
| 29 | 30 | ||
| 30 | #ifdef RAW_ENABLE | 31 | #ifdef RAW_ENABLE |
| 31 | # include "raw_hid.h" | 32 | # include "raw_hid.h" |
| @@ -409,9 +410,9 @@ const PROGMEM uchar keyboard_hid_report[] = { | |||
| 409 | 410 | ||
| 410 | #ifdef RAW_ENABLE | 411 | #ifdef RAW_ENABLE |
| 411 | const PROGMEM uchar raw_hid_report[] = { | 412 | const PROGMEM uchar raw_hid_report[] = { |
| 412 | 0x06, 0x60, 0xFF, // Usage Page (Vendor Defined) | 413 | 0x06, RAW_USAGE_PAGE_LO, RAW_USAGE_PAGE_HI, // Usage Page (Vendor Defined) |
| 413 | 0x09, 0x61, // Usage (Vendor Defined) | 414 | 0x09, RAW_USAGE_ID, // Usage (Vendor Defined) |
| 414 | 0xA1, 0x01, // Collection (Application) | 415 | 0xA1, 0x01, // Collection (Application) |
| 415 | // Data to host | 416 | // Data to host |
| 416 | 0x09, 0x62, // Usage (Vendor Defined) | 417 | 0x09, 0x62, // Usage (Vendor Defined) |
| 417 | 0x15, 0x00, // Logical Minimum (0) | 418 | 0x15, 0x00, // Logical Minimum (0) |
