This commit is contained in:
hathach
2022-04-27 20:52:56 +07:00
parent 4a661dead0
commit ae5490e5a5
7 changed files with 12 additions and 17 deletions

View File

@@ -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

View File

@@ -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