File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ if GetDepend(["PKG_TINYUSB_DEVICE_ENABLE"]):
34
34
src += ["../../src/class/cdc/cdc_device.c" ]
35
35
if GetDepend (["PKG_TINYUSB_DEVICE_MSC" ]):
36
36
src += ["../../src/class/msc/msc_device.c" , "port/msc_device_port.c" ]
37
+ if GetDepend (["PKG_TINYUSB_DEVICE_HID" ]):
38
+ src += ["../../src/class/hid/hid_device.c" ]
37
39
38
40
# for host stack
39
41
if GetDepend (["PKG_TINYUSB_HOST_ENABLE" ]):
Original file line number Diff line number Diff line change @@ -152,12 +152,12 @@ extern "C" {
152
152
#define CFG_TUH_ENABLED (0)
153
153
#endif
154
154
155
- #if (PKG_TINYUSB_HOST_PORT == 0 )
155
+ #if (PKG_TINYUSB_HOST_PORT == 0 ) && defined( PKG_TINYUSB_HOST_ENABLE )
156
156
#undef CFG_TUSB_RHPORT0_MODE
157
157
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_HOST | PKG_TINYUSB_HOST_PORT_SPEED)
158
158
#endif
159
159
160
- #if (PKG_TINYUSB_HOST_PORT == 1 )
160
+ #if (PKG_TINYUSB_HOST_PORT == 1 ) && defined( PKG_TINYUSB_HOST_ENABLE )
161
161
#undef CFG_TUSB_RHPORT1_MODE
162
162
#define CFG_TUSB_RHPORT1_MODE (OPT_MODE_HOST | PKG_TINYUSB_HOST_PORT_SPEED)
163
163
#endif
You can’t perform that action at this time.
0 commit comments