summaryrefslogtreecommitdiff
path: root/examples/device/hid_boot_interface
diff options
context:
space:
mode:
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