add TUP_USBIP_DWC2
This commit is contained in:
@@ -209,6 +209,7 @@
|
|||||||
|
|
||||||
//------------- Espressif -------------//
|
//------------- Espressif -------------//
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3)
|
#elif TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3)
|
||||||
|
#define TUP_USBIP_DWC2
|
||||||
#define TUP_DCD_ENDPOINT_MAX 6
|
#define TUP_DCD_ENDPOINT_MAX 6
|
||||||
|
|
||||||
//------------- Dialog -------------//
|
//------------- Dialog -------------//
|
||||||
@@ -221,6 +222,7 @@
|
|||||||
|
|
||||||
//------------- Silabs -------------//
|
//------------- Silabs -------------//
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_EFM32GG)
|
#elif TU_CHECK_MCU(OPT_MCU_EFM32GG)
|
||||||
|
#define TUP_USBIP_DWC2
|
||||||
#define TUP_DCD_ENDPOINT_MAX 7
|
#define TUP_DCD_ENDPOINT_MAX 7
|
||||||
|
|
||||||
//------------- Renesas -------------//
|
//------------- Renesas -------------//
|
||||||
@@ -229,15 +231,18 @@
|
|||||||
|
|
||||||
//------------- GigaDevice -------------//
|
//------------- GigaDevice -------------//
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_GD32VF103)
|
#elif TU_CHECK_MCU(OPT_MCU_GD32VF103)
|
||||||
|
#define TUP_USBIP_DWC2
|
||||||
#define TUP_DCD_ENDPOINT_MAX 4
|
#define TUP_DCD_ENDPOINT_MAX 4
|
||||||
|
|
||||||
//------------- Broadcom -------------//
|
//------------- Broadcom -------------//
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_BCM2711, OPT_MCU_BCM2835, OPT_MCU_BCM2837)
|
#elif TU_CHECK_MCU(OPT_MCU_BCM2711, OPT_MCU_BCM2835, OPT_MCU_BCM2837)
|
||||||
|
#define TUP_USBIP_DWC2
|
||||||
#define TUP_DCD_ENDPOINT_MAX 8
|
#define TUP_DCD_ENDPOINT_MAX 8
|
||||||
#define TUP_RHPORT_HIGHSPEED 0x01
|
#define TUP_RHPORT_HIGHSPEED 0x01
|
||||||
|
|
||||||
//------------- Broadcom -------------//
|
//------------- Broadcom -------------//
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_XMC4000)
|
#elif TU_CHECK_MCU(OPT_MCU_XMC4000)
|
||||||
|
#define TUP_USBIP_DWC2
|
||||||
#define TUP_DCD_ENDPOINT_MAX 8
|
#define TUP_DCD_ENDPOINT_MAX 8
|
||||||
|
|
||||||
//------------- BridgeTek -------------//
|
//------------- BridgeTek -------------//
|
||||||
|
@@ -29,11 +29,7 @@
|
|||||||
|
|
||||||
#include "tusb_option.h"
|
#include "tusb_option.h"
|
||||||
|
|
||||||
#if CFG_TUD_ENABLED && \
|
#if CFG_TUD_ENABLED && defined(TUP_USBIP_DWC2)
|
||||||
( defined(TUP_USBIP_DWC2) || \
|
|
||||||
TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3, OPT_MCU_GD32VF103) || \
|
|
||||||
TU_CHECK_MCU(OPT_MCU_EFM32GG, OPT_MCU_BCM2711, OPT_MCU_BCM2835) || \
|
|
||||||
TU_CHECK_MCU(OPT_MCU_BCM2837, OPT_MCU_XMC4000) )
|
|
||||||
|
|
||||||
#include "device/dcd.h"
|
#include "device/dcd.h"
|
||||||
#include "dwc2_type.h"
|
#include "dwc2_type.h"
|
||||||
|
Reference in New Issue
Block a user