add report descriptor

This commit is contained in:
Michele Balistreri 2022-10-21 17:15:00 +02:00
parent 500b267318
commit e99e406703
2 changed files with 14 additions and 3 deletions

View File

@ -94,7 +94,18 @@ static Command* usb_cmd;
__ALIGN_BEGIN static uint8_t CUSTOM_HID_ReportDesc_FS[USBD_CUSTOM_HID_REPORT_DESC_SIZE] __ALIGN_END = __ALIGN_BEGIN static uint8_t CUSTOM_HID_ReportDesc_FS[USBD_CUSTOM_HID_REPORT_DESC_SIZE] __ALIGN_END =
{ {
/* USER CODE BEGIN 0 */ /* USER CODE BEGIN 0 */
0x00, 0x06, 0x00, 0xff,
0x09, 0x01,
0xa1, 0x01,
0x15, 0x00,
0x26, 0xff, 0x00,
0x75, 0x08,
0x95, 0x40,
0x09, 0x01,
0x81, 0x02,
0x95, 0x40,
0x09, 0x01,
0x91, 0x02,
/* USER CODE END 0 */ /* USER CODE END 0 */
0xC0 /* END_COLLECTION */ 0xC0 /* END_COLLECTION */
}; };

View File

@ -74,13 +74,13 @@
/*---------- -----------*/ /*---------- -----------*/
#define USBD_DEBUG_LEVEL 0U #define USBD_DEBUG_LEVEL 0U
/*---------- -----------*/ /*---------- -----------*/
#define USBD_LPM_ENABLED 1U #define USBD_LPM_ENABLED 0U
/*---------- -----------*/ /*---------- -----------*/
#define USBD_SELF_POWERED 0U #define USBD_SELF_POWERED 0U
/*---------- -----------*/ /*---------- -----------*/
#define USBD_CUSTOMHID_OUTREPORT_BUF_SIZE 64U #define USBD_CUSTOMHID_OUTREPORT_BUF_SIZE 64U
/*---------- -----------*/ /*---------- -----------*/
#define USBD_CUSTOM_HID_REPORT_DESC_SIZE 64U #define USBD_CUSTOM_HID_REPORT_DESC_SIZE 27U
/*---------- -----------*/ /*---------- -----------*/
#define CUSTOM_HID_FS_BINTERVAL 20U #define CUSTOM_HID_FS_BINTERVAL 20U