summaryrefslogtreecommitdiff
path: root/examples/device/hid_boot_interface
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-04-14 21:51:49 +0700
committerhathach <[email protected]>2022-04-14 22:00:47 +0700
commitcc5a4720e5c1295eacf02c7b81fc4454f29cfaa4 (patch)
tree570326941aedd621c6c6fdc6c879ff275a0f3716 /examples/device/hid_boot_interface
parentd5d4909c20f581ef2046932191f487c001d59ca3 (diff)
catch up with pio lib
Diffstat (limited to 'examples/device/hid_boot_interface')
-rw-r--r--examples/device/hid_boot_interface/src/tusb_config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/device/hid_boot_interface/src/tusb_config.h b/examples/device/hid_boot_interface/src/tusb_config.h
index d4f67e7ba..c8bb8a807 100644
--- a/examples/device/hid_boot_interface/src/tusb_config.h
+++ b/examples/device/hid_boot_interface/src/tusb_config.h
@@ -41,6 +41,9 @@
// Use raspberry pio-usb for device
#define CFG_TUD_RPI_PIO_USB 1
+#if CFG_TUD_RPI_PIO_USB
+#define BOARD_DEVICE_RHPORT_NUM 1
+#endif
// RHPort number used for device can be defined by board.mk, default to port 0
#ifndef BOARD_DEVICE_RHPORT_NUM