summaryrefslogtreecommitdiff
path: root/examples/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-05-12 15:29:17 +0700
committerhathach <[email protected]>2021-05-18 12:58:24 +0700
commite83bdcdfdc521fef2dd182a5f83cd1c1be673865 (patch)
tree585426933841b97d579ab14ccb08b49ce2f70e7a /examples/host
parent4023d05e9306c68a3760fd696220868eab69a0d4 (diff)
reworking hid host
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/cdc_msc_hid/src/main.c2
-rw-r--r--examples/host/cdc_msc_hid/src/tusb_config.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c
index 652a372e9..b3fd1f2af 100644
--- a/examples/host/cdc_msc_hid/src/main.c
+++ b/examples/host/cdc_msc_hid/src/main.c
@@ -154,7 +154,7 @@ static inline void process_kbd_report(hid_keyboard_report_t const *p_new_report)
prev_report = *p_new_report;
}
-void tuh_hid_keyboard_mounted_cb(uint8_t dev_addr)
+void tuh_hid_mounted_cb(uint8_t dev_addr)
{
// application set-up
printf("A Keyboard device (address %d) is mounted\r\n", dev_addr);
diff --git a/examples/host/cdc_msc_hid/src/tusb_config.h b/examples/host/cdc_msc_hid/src/tusb_config.h
index fabc7765c..82155f1ca 100644
--- a/examples/host/cdc_msc_hid/src/tusb_config.h
+++ b/examples/host/cdc_msc_hid/src/tusb_config.h
@@ -73,9 +73,13 @@
#define CFG_TUH_HUB 1
#define CFG_TUH_CDC 1
+
+#define CFG_TUH_HID 2
+
#define CFG_TUH_HID_KEYBOARD 1
#define CFG_TUH_HID_MOUSE 1
#define CFG_TUSB_HOST_HID_GENERIC 0 // (not yet supported)
+
#define CFG_TUH_MSC 1
#define CFG_TUH_VENDOR 0