Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some mistake in example11-ExtMem_Boot_USB #11

Open
Liuyufanlyf opened this issue Feb 20, 2021 · 0 comments
Open

Some mistake in example11-ExtMem_Boot_USB #11

Liuyufanlyf opened this issue Feb 20, 2021 · 0 comments

Comments

@Liuyufanlyf
Copy link
Contributor

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

        ...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant