diff options
| author | hathach <[email protected]> | 2019-04-19 13:16:06 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-04-19 13:16:06 +0700 |
| commit | ff8fe28c985f3059bbd0633a0f778dd6b9f5a9d1 (patch) | |
| tree | cc78edf690b4b6e97577db800267f75b47f214d5 /src/class/hid | |
| parent | 6796026476e14fc82402cdbd2dc4418f51240ae5 (diff) | |
move interface descriptor template to usbd.h, update exmaple
Diffstat (limited to 'src/class/hid')
| -rw-r--r-- | src/class/hid/hid_device.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/class/hid/hid_device.h b/src/class/hid/hid_device.h index c017a8227..f72be61e2 100644 --- a/src/class/hid/hid_device.h +++ b/src/class/hid/hid_device.h @@ -111,20 +111,6 @@ static inline bool tud_hid_mouse_button_release(uint8_t report_id) return tud_hid_mouse_report(report_id, 0, 0, 0, 0, 0);
}
-//--------------------------------------------------------------------+
-// Interface Descriptor Template
-//--------------------------------------------------------------------+
-
-#define TUD_HID_DESC_LEN (9 + 9 + 7)
-
-#define TUD_HID_DESCRIPTOR(_itfnum, _stridx, _boot_protocol, _report_desc_len, _epin, _epsize, _ep_interval) \
- /* Interface */\
- 9, TUSB_DESC_INTERFACE, _itfnum, 0, 1, TUSB_CLASS_HID, (_boot_protocol) ? HID_SUBCLASS_BOOT : 0, _boot_protocol, _stridx,\
- /* HID descriptor */\
- 9, HID_DESC_TYPE_HID, U16_TO_U8S_LE(0x0111), 0, 1, HID_DESC_TYPE_REPORT, U16_TO_U8S_LE(_report_desc_len),\
- /* Endpoint descriptor */\
- 7, TUSB_DESC_ENDPOINT, _epin, TUSB_XFER_INTERRUPT, U16_TO_U8S_LE(_epsize), _ep_interval
-
/* --------------------------------------------------------------------+
* HID Report Descriptor Template
*
|
