enable CFG_TUH_MAX3421 and skip native host dwc2 for esp32
This commit is contained in:
parent
605d681c81
commit
1d3576a40a
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,6 @@ extern "C" {
|
|||
#define CFG_TUSB_MCU OPT_MCU_ESP32P4
|
||||
#else
|
||||
#define CFG_TUSB_MCU OPT_MCU_ESP32
|
||||
#define CFG_TUH_MAX3421 1
|
||||
#endif
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32P4
|
||||
|
|
@ -141,6 +140,7 @@ extern "C" {
|
|||
|
||||
// Enable host stack with MAX3421E (host shield)
|
||||
#define CFG_TUH_ENABLED 1
|
||||
#define CFG_TUH_MAX3421 1
|
||||
|
||||
#ifndef CFG_TUH_MAX3421_ENDPOINT_TOTAL
|
||||
#define CFG_TUH_MAX3421_ENDPOINT_TOTAL (8 + 4 * (CFG_TUH_DEVICE_MAX - 1))
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "tusb_option.h"
|
||||
|
||||
#if CFG_TUH_ENABLED && defined(TUP_USBIP_DWC2)
|
||||
#if CFG_TUH_ENABLED && defined(TUP_USBIP_DWC2) && !CFG_TUH_MAX3421
|
||||
|
||||
#if !(CFG_TUH_DWC2_SLAVE_ENABLE || CFG_TUH_DWC2_DMA_ENABLE)
|
||||
#error DWC2 require either CFG_TUH_DWC2_SLAVE_ENABLE or CFG_TUH_DWC2_DMA_ENABLE to be enabled
|
||||
|
|
|
|||
Loading…
Reference in a new issue