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" {
6464#define CFG_TUSB_MCU OPT_MCU_ESP32P4
6565#else
6666#define CFG_TUSB_MCU OPT_MCU_ESP32
67- #define CFG_TUH_MAX3421 1
6867#endif
6968
7069#if CONFIG_IDF_TARGET_ESP32P4
@@ -141,6 +140,7 @@ extern "C" {
141140
142141// Enable host stack with MAX3421E (host shield)
143142#define CFG_TUH_ENABLED 1
143+ #define CFG_TUH_MAX3421 1
144144
145145#ifndef CFG_TUH_MAX3421_ENDPOINT_TOTAL
146146#define CFG_TUH_MAX3421_ENDPOINT_TOTAL (8 + 4 * (CFG_TUH_DEVICE_MAX - 1))
Original file line number Diff line number Diff line change 2626
2727#include "tusb_option.h"
2828
29- #if CFG_TUH_ENABLED && defined(TUP_USBIP_DWC2 )
29+ #if CFG_TUH_ENABLED && defined(TUP_USBIP_DWC2 ) && ! CFG_TUH_MAX3421
3030
3131#if !(CFG_TUH_DWC2_SLAVE_ENABLE || CFG_TUH_DWC2_DMA_ENABLE )
3232#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