keyboard host work as proof of concept

This commit is contained in:
hathach 2020-09-04 00:23:57 +07:00
parent 35aee4a6af
commit 7828c396db
3 changed files with 4 additions and 3 deletions

View File

@ -53,6 +53,7 @@
<folder Name="mcb1800">
<file file_name="../../../../../hw/bsp/mcb1800/mcb1800.c" />
</folder>
<file file_name="../../../../../hw/bsp/board.c" />
</folder>
<folder Name="mcu">
<folder Name="nxp">

View File

@ -58,7 +58,7 @@ int main(void)
cdc_task();
#endif
#if CFG_TUD_HID
#if CFG_TUH_HID_KEYBOARD || CFG_TUH_HID_MOUSE
hid_task();
#endif
}

View File

@ -71,8 +71,8 @@
#define CFG_TUH_HUB 0
#define CFG_TUH_CDC 1
#define CFG_TUH_HID_KEYBOARD 0
#define CFG_TUH_HID_MOUSE 0
#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