使用 STM32CubeMX 可以快速地生成USBx Device 相关类的示例工程,本文以 NUCLEO-H563 为例,实现USBx Device HID Standalone 类,可以以此为参考移植到其他的 USBx Device 类。