mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 23:38:09 +00:00
use descriptor that matches fido one (except usage_page)
This commit is contained in:
parent
f8a743c652
commit
e119656c29
@ -50,17 +50,20 @@ static const struct usb_device_descriptor dev_descr = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const uint8_t hid_report_descriptor[] = {
|
static const uint8_t hid_report_descriptor[] = {
|
||||||
0x06, 0x00, 0xff, // USAGE_PAGE (Reserved)
|
0x06, 0x00, 0xff, // USAGE_PAGE (Vendor Defined)
|
||||||
0x09, 0x01, // USAGE (1)
|
0x09, 0x01, // USAGE (1)
|
||||||
0xa1, 0x01, // COLLECTION (Application)
|
0xa1, 0x01, // COLLECTION (Application)
|
||||||
|
0x09, 0x20, // USAGE (Input Report Data)
|
||||||
0x15, 0x00, // LOGICAL_MINIMUM (0)
|
0x15, 0x00, // LOGICAL_MINIMUM (0)
|
||||||
0x26, 0xff, 0x00, // LOGICAL_MAXIMUM (255)
|
0x26, 0xff, 0x00, // LOGICAL_MAXIMUM (255)
|
||||||
0x85, 0x3f, // REPORT_ID (63)
|
|
||||||
0x75, 0x08, // REPORT_SIZE (8)
|
0x75, 0x08, // REPORT_SIZE (8)
|
||||||
0x95, 0x3f, // REPORT_COUNT (63)
|
0x95, 0x40, // REPORT_COUNT (64)
|
||||||
0x09, 0x01, // USAGE (1)
|
|
||||||
0x81, 0x02, // INPUT (Data,Var,Abs)
|
0x81, 0x02, // INPUT (Data,Var,Abs)
|
||||||
0x09, 0x01, // USAGE (1)
|
0x09, 0x21, // USAGE (Output Report Data)
|
||||||
|
0x15, 0x00, // LOGICAL_MINIMUM (0)
|
||||||
|
0x26, 0xff, 0x00, // LOGICAL_MAXIMUM (255)
|
||||||
|
0x75, 0x08, // REPORT_SIZE (8)
|
||||||
|
0x95, 0x40, // REPORT_COUNT (64)
|
||||||
0x91, 0x02, // OUTPUT (Data,Var,Abs)
|
0x91, 0x02, // OUTPUT (Data,Var,Abs)
|
||||||
0xc0 // END_COLLECTION
|
0xc0 // END_COLLECTION
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user