summaryrefslogtreecommitdiff
path: root/src/device/dcd_attr.h
diff options
context:
space:
mode:
authorYunhao Tian <[email protected]>2021-11-30 17:12:56 +0800
committerYunhao Tian <[email protected]>2021-12-01 15:35:48 +0800
commitbb7d1fa3bacb08717e8eebc55f81fde7bf810e3a (patch)
tree8e39e70a962befb46ba4c5757796111abb0c87ec /src/device/dcd_attr.h
parenta6929cf03eabe9f4fc0404d7c15b04ee2761945c (diff)
Add support for Allwinner F1Cx00s family
Allwinner F1Cx00s family is a series of SoCs with Mentor MUSB controller and HS phy. It comes with a slightly different register space layout, and some quirks, so it's not multiplexed with the existing musb support library. This library currently requires to be compiled with https://github.com/hongxuyao/F1C100s_with_Keil_RTX4_emWin5
Diffstat (limited to 'src/device/dcd_attr.h')
-rw-r--r--src/device/dcd_attr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/dcd_attr.h b/src/device/dcd_attr.h
index 73d592e5c..0ea46ebe1 100644
--- a/src/device/dcd_attr.h
+++ b/src/device/dcd_attr.h
@@ -195,6 +195,10 @@
#elif TU_CHECK_MCU(OPT_MCU_XMC4000)
#define DCD_ATTR_ENDPOINT_MAX 8
+//------------ Allwinner -------------//
+#elif TU_CHECK_MCU(OPT_MCU_F1C100S)
+ #define DCD_ATTR_ENDPOINT_MAX 4
+
#else
#warning "DCD_ATTR_ENDPOINT_MAX is not defined for this MCU, default to 8"
#define DCD_ATTR_ENDPOINT_MAX 8