refactor hid, rename hid_generic to simply hid_

This commit is contained in:
hathach
2019-04-18 00:36:17 +07:00
parent 395fd54dcb
commit cc2fce31e5
7 changed files with 66 additions and 170 deletions

View File

@@ -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;

View File

@@ -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