diff options
| author | Ha Thach <[email protected]> | 2022-05-21 13:54:25 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-21 13:54:25 +0700 |
| commit | 2683deb0dd2e049de6c9b15f49d28a2fef4380f6 (patch) | |
| tree | fb480d7a4fa7aa7797097600b6d8a5fef3f080b3 /src/tusb_option.h | |
| parent | 817227a850d4942cf48ede675325d635e2e7b3d5 (diff) | |
| parent | c2bcda86e2de35cc01628f4e909e2a7869a7322b (diff) | |
Merge branch 'master' into ch32v307
Diffstat (limited to 'src/tusb_option.h')
| -rw-r--r-- | src/tusb_option.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index 28bf8a60d..65d886e59 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -242,7 +242,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 @@ -261,7 +261,7 @@ //--------------------------------------------------------------------+ -// COMMON OPTIONS +// Common Options (Default) //--------------------------------------------------------------------+ // Debug enable to print out error message @@ -289,10 +289,10 @@ #endif // mutex is only needed for RTOS TODO also required with multiple core MCUs -#define TUSB_OPT_MUTEX (CFG_TUSB_OS != OPT_OS_NONE) +#define TUSB_OPT_MUTEX (CFG_TUSB_OS != OPT_OS_NONE) //-------------------------------------------------------------------- -// DEVICE OPTIONS +// Device Options (Default) //-------------------------------------------------------------------- #ifndef CFG_TUD_ENDPOINT0_SIZE @@ -357,7 +357,7 @@ #endif //-------------------------------------------------------------------- -// HOST OPTIONS +// Host Options (Default) //-------------------------------------------------------------------- #if CFG_TUH_ENABLED #ifndef CFG_TUH_DEVICE_MAX @@ -399,6 +399,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 //------------------------------------------------------------------ |
