enable CFG_TUH_MAX3421 and skip native host dwc2 for esp32

This commit is contained in:
hathach 2025-03-06 22:38:36 +07:00
parent 605d681c81
commit 1d3576a40a
No known key found for this signature in database
GPG key ID: 26FAB84F615C3C52
2 changed files with 2 additions and 2 deletions

View file

@ -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))

View file

@ -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