WeActStudio / MiniSTM32H7xx

STM32H750VBT6/STM32H743VIT6 Core Board With 0.96'' TFT,TF Card,8MB QSPI FLASH,8MB SPI FLASH,DVP Port
GNU General Public License v3.0
288 stars 100 forks source link

Some mistake in example11-ExtMem_Boot_USB #11

Open Liuyufanlyf opened 3 years ago

Liuyufanlyf commented 3 years ago

In the file MiniSTM32H7xx\SDK\HAL\STM32H750\11-ExtMem_Boot_USB\USB_DEVICE\App\usbd_custom_hid_if.c, in the part of Usb HID report descriptor, the comment shows that HID INPUT REPORT SIZE is 8. However, the source code CUSTOM_HID_EPIN_SIZE equals 64, so I think the comment is wrong. There is the same problem in example11 of STM32H743.

__ALIGN_BEGIN static uint8_t CUSTOM_HID_ReportDesc_FS[USBD_CUSTOM_HID_REPORT_DESC_SIZE] __ALIGN_END =
{
        ...

    0x75, 0x08,      //  REPORT_SIZE (8)                        // 9 B
    0x95, CUSTOM_HID_EPOUT_SIZE,      //  REPORT_COUNT (64)
    0x91, 0x03,          //  OUTPUT (Cnst, Var, Abs)                                                   // 14B

        ...
};