reworking hid host

This commit is contained in:
hathach
2021-05-12 15:29:17 +07:00
parent 4023d05e93
commit e83bdcdfdc
5 changed files with 108 additions and 72 deletions

View File

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

View File

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