commit 540e0f6ca58fb51188b9aea1b9bda6ea3dfbe76d
parent 9adfe2dfb7a441afdc9b0886cf89cdb6d57c9eec
Author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
Date: Wed, 5 Oct 2022 22:20:50 +0200
keyboard-fw: remove unused media control report bits
Signed-off-by: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
Diffstat:
2 files changed, 1 insertion(+), 10 deletions(-)
diff --git a/reform2-keyboard-fw/descriptors.c b/reform2-keyboard-fw/descriptors.c
@@ -42,22 +42,17 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM MediaControlReport[] =
HID_RI_COLLECTION(8, 0x01), /* Application */
HID_RI_USAGE(8, 0x70), /* Display Brightness Increment */
HID_RI_USAGE(8, 0x6F), /* Display Brightness Decrement */
- HID_RI_USAGE(8, 0xB3), /* Fast Forward */
- HID_RI_USAGE(8, 0xB4), /* Rewind */
HID_RI_USAGE(8, 0xB5), /* Next Track */
HID_RI_USAGE(8, 0xB6), /* Previous Track */
- HID_RI_USAGE(8, 0xB7), /* Stop */
HID_RI_USAGE(8, 0xCD), /* Play/Pause (toggle) */
HID_RI_USAGE(8, 0xE2), /* Mute */
HID_RI_USAGE(8, 0xE9), /* Volume Up */
HID_RI_USAGE(8, 0xEA), /* Volume Down */
HID_RI_REPORT_SIZE(8, 0x01),
- HID_RI_REPORT_COUNT(8, 0x0B),
+ HID_RI_REPORT_COUNT(8, 0x08),
HID_RI_LOGICAL_MINIMUM(8, 0),
HID_RI_LOGICAL_MAXIMUM(8, 1),
HID_RI_INPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_RELATIVE),
- HID_RI_REPORT_COUNT(8, 0x05),
- HID_RI_INPUT(8, HID_IOF_CONSTANT),
HID_RI_END_COLLECTION(0),
};
diff --git a/reform2-keyboard-fw/keyboard.h b/reform2-keyboard-fw/keyboard.h
@@ -134,16 +134,12 @@ typedef struct
{
unsigned BrightnessUp : 1;
unsigned BrightnessDown : 1;
- unsigned FForward : 1;
- unsigned Rewind : 1;
unsigned NextTrack : 1;
unsigned PreviousTrack : 1;
- unsigned Stop : 1;
unsigned PlayPause : 1;
unsigned Mute : 1;
unsigned VolumeUp : 1;
unsigned VolumeDown : 1;
- unsigned RESERVED : 5;
} ATTR_PACKED USB_MediaReport_Data_t;
void setup_hardware(void);