summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-04-27 20:52:56 +0700
committerhathach <[email protected]>2022-04-27 20:52:56 +0700
commitae5490e5a5cd8650a45578b4ac70dbe89b002fb1 (patch)
treee8aa3de0a30163bff20ae5d4079270ed00e5e3fc /examples
parent4a661dead0899cb154325a8257d19281f2536af3 (diff)
clean up
Diffstat (limited to 'examples')
-rw-r--r--examples/device/hid_boot_interface/src/tusb_config.h6
-rw-r--r--examples/host/cdc_msc_hid/src/tusb_config.h7
2 files changed, 5 insertions, 8 deletions
diff --git a/examples/device/hid_boot_interface/src/tusb_config.h b/examples/device/hid_boot_interface/src/tusb_config.h
index c8bb8a807..8bc85b722 100644
--- a/examples/device/hid_boot_interface/src/tusb_config.h
+++ b/examples/device/hid_boot_interface/src/tusb_config.h
@@ -40,10 +40,8 @@
#endif
// 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
+// #define CFG_TUD_RPI_PIO_USB 1
+// #define BOARD_DEVICE_RHPORT_NUM 1
// RHPort number used for device can be defined by board.mk, default to port 0
#ifndef BOARD_DEVICE_RHPORT_NUM
diff --git a/examples/host/cdc_msc_hid/src/tusb_config.h b/examples/host/cdc_msc_hid/src/tusb_config.h
index 9d083c771..e9e68cf5a 100644
--- a/examples/host/cdc_msc_hid/src/tusb_config.h
+++ b/examples/host/cdc_msc_hid/src/tusb_config.h
@@ -40,13 +40,12 @@
#endif
// Use raspberry pio-usb for host
-#define CFG_TUH_RPI_PIO_USB 1
-//#define CFG_TUSB_RPI_PIO_INC_PATH 1
-
+// #define CFG_TUH_RPI_PIO_USB 1
+// #define CFG_TUH_RPI_PIO_USB 1
#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_HOST | OPT_MODE_HIGH_SPEED)
-#elif CFG_TUH_RPI_PIO_USB
+#elif defined(CFG_TUH_RPI_PIO_USB) && CFG_TUH_RPI_PIO_USB
// rp2040: port0 is native, port 1 for PIO-USB
#define CFG_TUSB_RHPORT1_MODE OPT_MODE_HOST
#else