diff options
| author | Ha Thach <[email protected]> | 2022-05-16 16:29:20 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-16 16:29:20 +0700 |
| commit | c2bcda86e2de35cc01628f4e909e2a7869a7322b (patch) | |
| tree | 948f913855f9fb2f6b4e9dd726491649a21313d4 /src/tusb_option.h | |
| parent | d23c9b7cd681b972d310e401b418f4368507e06f (diff) | |
| parent | e0e9426c2a912c2c405da602b1bf8d75d16f92e7 (diff) | |
Merge pull request #1412 from hathach/pio-host
PIO USB support
Diffstat (limited to 'src/tusb_option.h')
| -rw-r--r-- | src/tusb_option.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index 9cacedd4c..0c914bc4f 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -239,7 +239,7 @@ #define TUH_OPT_RHPORT -1 #endif -#define CFG_TUH_ENABLED ( TUH_RHPORT_MODE & OPT_MODE_HOST ) +#define CFG_TUH_ENABLED (TUH_RHPORT_MODE & OPT_MODE_HOST) // For backward compatible #define TUSB_OPT_DEVICE_ENABLED CFG_TUD_ENABLED @@ -258,7 +258,7 @@ //--------------------------------------------------------------------+ -// COMMON OPTIONS +// Common Options (Default) //--------------------------------------------------------------------+ // Debug enable to print out error message @@ -289,7 +289,7 @@ #define TUSB_OPT_MUTEX (CFG_TUSB_OS != OPT_OS_NONE) //-------------------------------------------------------------------- -// DEVICE OPTIONS +// Device Options (Default) //-------------------------------------------------------------------- #ifndef CFG_TUD_ENDPOINT0_SIZE @@ -354,7 +354,7 @@ #endif //-------------------------------------------------------------------- -// HOST OPTIONS +// Host Options (Default) //-------------------------------------------------------------------- #if CFG_TUH_ENABLED #ifndef CFG_TUH_DEVICE_MAX @@ -396,6 +396,16 @@ #define CFG_TUH_API_EDPT_XFER 0 #endif +// Enable PIO-USB software host controller +#ifndef CFG_TUH_RPI_PIO_USB +#define CFG_TUH_RPI_PIO_USB 0 +#endif + +#ifndef CFG_TUD_RPI_PIO_USB +#define CFG_TUD_RPI_PIO_USB 0 +#endif + + //------------------------------------------------------------------ // Configuration Validation //------------------------------------------------------------------ |
