在最新版的usbd_hid.c的文件里,文件只定义了HID_Compliance_Mouse一种应用,如下文件说明所示。
* ===================================================================
* HID Class Descrip
tion
* ===================================================================
* This module manages the HID class V1.11 following the "Device Class Definition
* for Human Interface Devices (HID) Version 1.11 Jun 27, 2001".
* This driver implements the following aspects of the specification:
* - The Boot Interface Subclass
* - The Mouse protocol
* - Usage Page : Generic Desktop
* - Usage : Joystick
* - Collection : Application
我觉得作为中间件的库文件,是否应该把这里变的更开放,允许用户自行去选择HID的用途?并把接口开放到用户应用的文件中去。谢谢。