diff options
| author | hathach <[email protected]> | 2019-04-18 00:36:17 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-04-18 00:36:17 +0700 |
| commit | cc2fce31e5c2ba92f1a9f7874096e0e6e3db14cb (patch) | |
| tree | 1291068b8ce8034215771c1e65a1cd04b0fb56cd /src/device | |
| parent | 395fd54dcb24471db2ce1e6e48ce7acf0ed78aa5 (diff) | |
refactor hid, rename hid_generic to simply hid_
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.h | 6 | ||||
| -rw-r--r-- | src/device/usbd_auto_desc.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index 13c282e91..f90c40aab 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -45,11 +45,7 @@ typedef struct { uint8_t const** string_arr; ///< a array of pointers to string descriptors
uint16_t string_count;
- struct {
- uint8_t const* generic;
- uint8_t const* boot_keyboard;
- uint8_t const* boot_mouse;
- } hid_report;
+ uint8_t const* hid_report;
}tud_desc_set_t;
diff --git a/src/device/usbd_auto_desc.c b/src/device/usbd_auto_desc.c index a980df1e0..6b4bbced5 100644 --- a/src/device/usbd_auto_desc.c +++ b/src/device/usbd_auto_desc.c @@ -562,6 +562,9 @@ tud_desc_set_t const _usbd_auto_desc_set = .device = NULL, // no auto device .config = &_desc_auto_config_struct, + .hid_report = _desc_auto_hid_boot_kbd_report + +#if 0 .hid_report = { #if AUTO_DESC_HID_GENERIC @@ -578,6 +581,7 @@ tud_desc_set_t const _usbd_auto_desc_set = .boot_mouse = _desc_auto_hid_boot_mse_report #endif } +#endif }; #endif |
