diff options
| author | hathach <[email protected]> | 2022-04-08 13:36:05 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-04-08 13:36:05 +0700 |
| commit | d5d4909c20f581ef2046932191f487c001d59ca3 (patch) | |
| tree | 1a9e0023c867554886edc12bd694000ca9d937e4 /src/tusb_option.h | |
| parent | d97c1546957059cfb3063b95d5287e2729f7f79a (diff) | |
proof of concpet that device pio-usb work with host pio-usb
Diffstat (limited to 'src/tusb_option.h')
| -rw-r--r-- | src/tusb_option.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index 61cc283c4..5636b34fe 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 @@ -398,6 +398,10 @@ #define CFG_TUH_RPI_PIO_USB 0 #endif +#ifndef CFG_TUD_RPI_PIO_USB +#define CFG_TUD_RPI_PIO_USB 0 +#endif + //------------------------------------------------------------------ // Configuration Validation |
