From 4d08129d49cd1fb8c770c3ced86ede9ca744e860 Mon Sep 17 00:00:00 2001 From: Simon Kueppers Date: Sun, 21 May 2023 13:58:08 +0200 Subject: [PATCH] Modified the CM108 HID report descriptor and set all button presses to unassigned function so as to not interfere with the host system --- stm32/aioc-fw/Src/usb_descriptors.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stm32/aioc-fw/Src/usb_descriptors.c b/stm32/aioc-fw/Src/usb_descriptors.c index 2d7f368..7076f6d 100644 --- a/stm32/aioc-fw/Src/usb_descriptors.c +++ b/stm32/aioc-fw/Src/usb_descriptors.c @@ -69,18 +69,18 @@ uint8_t const desc_hid_report[] = { /* Volume Up/Dn */ HID_LOGICAL_MIN ( 0x00 ), HID_LOGICAL_MAX ( 0x01 ), - HID_USAGE ( 0xE9 /* Volume Inc */ ), - HID_USAGE ( 0xEA /* Volume Dec */ ), + HID_USAGE ( 0x00 /* Unassigned */ ), + HID_USAGE ( 0x00 /* Unassigned */ ), HID_REPORT_SIZE ( 1 ), HID_REPORT_COUNT( 2 ), HID_INPUT ( HID_DATA | HID_VARIABLE | HID_ABSOLUTE ), /* Mute */ - HID_USAGE ( 0xE2 /* Volume Mute */ ), + HID_USAGE ( 0x00 /* Unassigned */ ), HID_USAGE ( 0x00 /* Unassigned */ ), HID_INPUT ( HID_DATA | HID_VARIABLE | HID_RELATIVE ), /* Hook Switch */ HID_USAGE_PAGE ( HID_USAGE_PAGE_TELEPHONY ), - HID_USAGE ( 0x20 /* Hook Switch */ ), + HID_USAGE ( 0x00 /* Unassigned */ ), HID_REPORT_COUNT( 1 ), HID_INPUT ( HID_DATA | HID_VARIABLE | HID_ABSOLUTE | HID_NULL_STATE), /* Filler */