New HID descriptors to make MAC OS happy.
This commit is contained in:
parent
89b5247a93
commit
1a294dbae6
@ -111,23 +111,21 @@ const alignas(4) usb_configuration_hierarchy_t usb_configuration_hierarchy =
|
||||
|
||||
};
|
||||
|
||||
const alignas(4) uint8_t usb_hid_report_descriptor[35] =
|
||||
const alignas(4) uint8_t usb_hid_report_descriptor[30] =
|
||||
{
|
||||
0x06, 0x00, 0xff, // Usage Page (Vendor Defined 0xFF00)
|
||||
0x09, 0x01, // Usage (0x01)
|
||||
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
|
||||
0x09, 0x00, // Usage (Undefined)
|
||||
0xa1, 0x01, // Collection (Application)
|
||||
0x15, 0x00, // Logical Minimum (0)
|
||||
0x26, 0xff, 0x00, // Logical Maximum (255)
|
||||
0x75, 0x08, // Report Size (8)
|
||||
0x96, 0x00, 0x04, // Report Count (1024)
|
||||
0x09, 0x01, // Usage (0x01)
|
||||
0x81, 0x02, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
|
||||
0x09, 0x00, // Usage (Undefined)
|
||||
0x81, 0x82, // Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
|
||||
0x75, 0x08, // Report Size (8)
|
||||
0x96, 0x00, 0x04, // Report Count (1024)
|
||||
0x09, 0x01, // Usage (0x01)
|
||||
0x91, 0x02, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
|
||||
0x95, 0x01, // Report Count (1)
|
||||
0x09, 0x01, // Usage (0x01)
|
||||
0xb1, 0x02, // Feature (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Non-volatile)
|
||||
0x09, 0x00, // Usage (Undefined)
|
||||
0x91, 0x82, // Output (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position,Volatile)
|
||||
0xc0, // End Collection
|
||||
};
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ typedef struct PACK
|
||||
//-----------------------------------------------------------------------------
|
||||
extern const usb_device_descriptor_t usb_device_descriptor;
|
||||
extern const usb_configuration_hierarchy_t usb_configuration_hierarchy;
|
||||
extern const uint8_t usb_hid_report_descriptor[35];
|
||||
extern const uint8_t usb_hid_report_descriptor[30];
|
||||
extern const usb_string_descriptor_zero_t usb_string_descriptor_zero;
|
||||
extern const char *usb_strings[];
|
||||
extern char usb_serial_number[16];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user