host msc example work well with rp2040 pio-usb

This commit is contained in:
hathach
2022-11-21 15:49:38 +07:00
parent ba9f88f18c
commit 460bef9dbb
11 changed files with 43 additions and 37 deletions

View File

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