diff options
| author | hathach <[email protected]> | 2021-05-12 19:27:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-05-18 12:58:24 +0700 |
| commit | e0dbb489aed9d9e7f081c379400dcb74600ede6a (patch) | |
| tree | 97a469923eacb351ea59960a4f488567a2e5ab96 /examples | |
| parent | e83bdcdfdc521fef2dd182a5f83cd1c1be673865 (diff) | |
rename CFG_TUSB_HOST_ENUM_BUFFER_SIZE to CFG_TUH_ENUMERATION_BUFSZIE
add usbh_get_enum_buf
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/tusb_config.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/host/cdc_msc_hid/src/tusb_config.h b/examples/host/cdc_msc_hid/src/tusb_config.h index 82155f1ca..e1e02e31e 100644 --- a/examples/host/cdc_msc_hid/src/tusb_config.h +++ b/examples/host/cdc_msc_hid/src/tusb_config.h @@ -71,6 +71,9 @@ // CONFIGURATION //-------------------------------------------------------------------- +// Size of buffer to hold descriptors and other data used for enumeration +#define CFG_TUH_ENUMERATION_BUFSZIE 256 + #define CFG_TUH_HUB 1 #define CFG_TUH_CDC 1 @@ -85,6 +88,16 @@ #define CFG_TUSB_HOST_DEVICE_MAX (CFG_TUH_HUB ? 5 : 1) // normal hub has 4 ports +//------------- HID -------------// + +// Max number of reports per interface +// E.g composite HID with keyboard + mouse + gamepad will have 3 reports +#define CFG_TUH_HID_REPORT_MAX 4 + +// Max buffer +#define CFG_TUH_HID_REPORT_DESCRIPTOR_BUFSIZE 256 + + #ifdef __cplusplus } #endif |
