diff --git a/USB_Device/App/usbd_custom_hid_if.c b/USB_Device/App/usbd_custom_hid_if.c index c5a456b..07c5b55 100644 --- a/USB_Device/App/usbd_custom_hid_if.c +++ b/USB_Device/App/usbd_custom_hid_if.c @@ -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 = { /* 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 */ 0xC0 /* END_COLLECTION */ }; diff --git a/USB_Device/Target/usbd_conf.h b/USB_Device/Target/usbd_conf.h index 9b4c50e..21809ca 100644 --- a/USB_Device/Target/usbd_conf.h +++ b/USB_Device/Target/usbd_conf.h @@ -74,13 +74,13 @@ /*---------- -----------*/ #define USBD_DEBUG_LEVEL 0U /*---------- -----------*/ -#define USBD_LPM_ENABLED 1U +#define USBD_LPM_ENABLED 0U /*---------- -----------*/ #define USBD_SELF_POWERED 0U /*---------- -----------*/ #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