summaryrefslogtreecommitdiff
path: root/examples/host/hid_controller/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-11-23 12:30:10 +0700
committerhathach <[email protected]>2022-11-23 12:30:10 +0700
commit21d552bbdff19abe3ab46b23468d719be5aa2a55 (patch)
tree0884657931ad67482c2877119eef5eefcc4f1d7c /examples/host/hid_controller/src
parent4a2e424103b0a2626a6cb464a350c68ae109cc7e (diff)
allow all host examples to use pico-pio-usb for rp2040
Diffstat (limited to 'examples/host/hid_controller/src')
-rw-r--r--examples/host/hid_controller/src/tusb_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/host/hid_controller/src/tusb_config.h b/examples/host/hid_controller/src/tusb_config.h
index 475b9ca8f..e6d6f873d 100644
--- a/examples/host/hid_controller/src/tusb_config.h
+++ b/examples/host/hid_controller/src/tusb_config.h
@@ -34,6 +34,12 @@
// Board Specific Configuration
//--------------------------------------------------------------------+
+ #if CFG_TUSB_MCU == OPT_MCU_RP2040
+// change to 1 if using pico-pio-usb as host controller for raspberry rp2040
+#define CFG_TUH_RPI_PIO_USB 0
+#define BOARD_TUH_RHPORT CFG_TUH_RPI_PIO_USB
+#endif
+
// RHPort number used for host can be defined by board.mk, default to port 0
#ifndef BOARD_TUH_RHPORT
#define BOARD_TUH_RHPORT 0