Skip to content

Commit ec0e6d4

Browse files
committed
fl16: Move IAD from keyboard to reset interface
Maybe this fixes systemd-boot Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent c028d41 commit ec0e6d4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tmk_core/protocol/usb_descriptor.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -639,18 +639,6 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = {
639639
.ConfigAttributes = (USB_CONFIG_ATTR_RESERVED | USB_CONFIG_ATTR_REMOTEWAKEUP),
640640
.MaxPowerConsumption = USB_CONFIG_POWER_MA(USB_MAX_POWER_CONSUMPTION)
641641
},
642-
.Keyboard_Interface_Association = {
643-
.Header = {
644-
.Size = sizeof(USB_Descriptor_Interface_Association_t),
645-
.Type = DTYPE_InterfaceAssociation
646-
},
647-
.FirstInterfaceIndex = KEYBOARD_INTERFACE,
648-
.TotalInterfaces = CONSOLE_INTERFACE, // It's the interface after this
649-
.Class = HID_CSCP_HIDClass,
650-
.SubClass = HID_CSCP_BootSubclass,
651-
.Protocol = HID_CSCP_KeyboardBootProtocol,
652-
.IADStrIndex = NO_DESCRIPTOR,
653-
},
654642
#ifndef KEYBOARD_SHARED_EP
655643
/*
656644
* Keyboard
@@ -1222,6 +1210,18 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor = {
12221210
.PollingIntervalMS = USB_POLLING_INTERVAL_MS
12231211
},
12241212
#endif
1213+
.Reset_Interface_Association = {
1214+
.Header = {
1215+
.Size = sizeof(USB_Descriptor_Interface_Association_t),
1216+
.Type = DTYPE_InterfaceAssociation
1217+
},
1218+
.FirstInterfaceIndex = RP2040_RESET_INTERFACE,
1219+
.TotalInterfaces = 1,
1220+
.Class = 0xFF,
1221+
.SubClass = 0x00, // RESET_INTERFACE_SUBCLASS
1222+
.Protocol = 0x01, // RESET_INTERFACE_PROTOCOL
1223+
.IADStrIndex = NO_DESCRIPTOR,
1224+
},
12251225
.Rp2040_Reset_Interface = {
12261226
.Header = {
12271227
.Size = sizeof(USB_Descriptor_Interface_t),

tmk_core/protocol/usb_descriptor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
*/
5858
typedef struct {
5959
USB_Descriptor_Configuration_Header_t Config;
60-
USB_Descriptor_Interface_Association_t Keyboard_Interface_Association;
6160

6261
#ifndef KEYBOARD_SHARED_EP
6362
// Keyboard HID Interface
@@ -148,6 +147,7 @@ typedef struct {
148147
USB_Descriptor_Endpoint_t Digitizer_INEndpoint;
149148
#endif
150149

150+
USB_Descriptor_Interface_Association_t Reset_Interface_Association;
151151
USB_Descriptor_Interface_t Rp2040_Reset_Interface;
152152
} USB_Descriptor_Configuration_t;
153153

0 commit comments

Comments
 (0)