aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/protocol/usb_descriptor.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2020-05-21 20:31:42 +1000
committerGitHub <noreply@github.com>2020-05-21 20:31:42 +1000
commitd1df576ece12a7627a18e1581eed482cda2dbed5 (patch)
tree8c8415ba527681ed9d453689c435c6f06a6daa64 /tmk_core/protocol/usb_descriptor.c
parent83ebbf57b349552038d9d9af994eb2e9528ecbc5 (diff)
downloadfirmware-d1df576ece12a7627a18e1581eed482cda2dbed5.tar.gz
firmware-d1df576ece12a7627a18e1581eed482cda2dbed5.tar.bz2
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/usb_descriptor.c')
-rw-r--r--tmk_core/protocol/usb_descriptor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tmk_core/protocol/usb_descriptor.c b/tmk_core/protocol/usb_descriptor.c
index f2b91b099..8c71dd1dd 100644
--- a/tmk_core/protocol/usb_descriptor.c
+++ b/tmk_core/protocol/usb_descriptor.c
@@ -39,6 +39,7 @@
#include "util.h"
#include "report.h"
#include "usb_descriptor.h"
+#include "usb_descriptor_common.h"
// clang-format off
@@ -232,8 +233,8 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM SharedReport[] = {
#ifdef RAW_ENABLE
const USB_Descriptor_HIDReport_Datatype_t PROGMEM RawReport[] = {
- HID_RI_USAGE_PAGE(16, 0xFF60), // Vendor Defined
- HID_RI_USAGE(8, 0x61), // Vendor Defined
+ HID_RI_USAGE_PAGE(16, RAW_USAGE_PAGE), // Vendor Defined
+ HID_RI_USAGE(8, RAW_USAGE_ID), // Vendor Defined
HID_RI_COLLECTION(8, 0x01), // Application
// Data to host
HID_RI_USAGE(8, 0x62), // Vendor Defined