File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ extern "C" {
64
64
#define CFG_TUSB_MCU OPT_MCU_ESP32P4
65
65
#else
66
66
#define CFG_TUSB_MCU OPT_MCU_ESP32
67
- #define CFG_TUH_MAX3421 1
68
67
#endif
69
68
70
69
#if CONFIG_IDF_TARGET_ESP32P4
@@ -141,6 +140,7 @@ extern "C" {
141
140
142
141
// Enable host stack with MAX3421E (host shield)
143
142
#define CFG_TUH_ENABLED 1
143
+ #define CFG_TUH_MAX3421 1
144
144
145
145
#ifndef CFG_TUH_MAX3421_ENDPOINT_TOTAL
146
146
#define CFG_TUH_MAX3421_ENDPOINT_TOTAL (8 + 4 * (CFG_TUH_DEVICE_MAX - 1))
Original file line number Diff line number Diff line change 26
26
27
27
#include "tusb_option.h"
28
28
29
- #if CFG_TUH_ENABLED && defined(TUP_USBIP_DWC2 )
29
+ #if CFG_TUH_ENABLED && defined(TUP_USBIP_DWC2 ) && ! CFG_TUH_MAX3421
30
30
31
31
#if !(CFG_TUH_DWC2_SLAVE_ENABLE || CFG_TUH_DWC2_DMA_ENABLE )
32
32
#error DWC2 require either CFG_TUH_DWC2_SLAVE_ENABLE or CFG_TUH_DWC2_DMA_ENABLE to be enabled
You can’t perform that action at this time.
0 commit comments