summaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-12-19 21:20:33 +0800
committersakumisu <[email protected]>2024-12-19 21:20:33 +0800
commit75e6dc6300805331e885f5dc45edf8c2154f2799 (patch)
treec69d651528a2ce173462a7dd182268694afa3f3a /docs/source
parenteffee4d4c28df62edd71e99ea8229d99a2aa055e (diff)
update(port/dwc2/usb_glue_gd): add check for ep
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/q&a.rst14
-rw-r--r--docs/source/share.rst4
2 files changed, 16 insertions, 2 deletions
diff --git a/docs/source/q&a.rst b/docs/source/q&a.rst
index 56a1d058..48064cde 100644
--- a/docs/source/q&a.rst
+++ b/docs/source/q&a.rst
@@ -43,7 +43,19 @@ ST 命名为 USB_OTG_FS, USB_OTG_HS,并不是说明本身是高速或者全速
GD IP 问题
------------------
-GD IP 采用 DWC2,但是读取的硬件参数都是 0(我也不懂为什么不给人知道),因此需要用户自行知道硬件信息,并修改代码下面 check 的内容,然后删除 while1。
+GD IP 采用 DWC2,但是读取的硬件参数都是 0(我也不懂为什么不给人知道),因此需要用户自行知道硬件信息,以下列举 GD32F4 的信息:
+
+CONFIG_USBDEV_EP_NUM pa11/pa12 引脚必须为 4,PB14/PB15 引脚必须为 6,并删除 usb_dc_dwc2.c 中 while(1){}
+
+- 当 CONFIG_USBDEV_EP_NUM 为4 时,fifo_num 不得大于 320 字
+- 当 CONFIG_USBDEV_EP_NUM 为6 时,fifo_num 不得大于 1280 字
+
+其次 GD 复位以后无法使用 EPDIS 功能关闭端点,需要用户删除 reset 中断中的以下代码:
+
+.. code-block:: C
+
+ USB_OTG_INEP(i)->DIEPCTL = (USB_OTG_DIEPCTL_EPDIS | USB_OTG_DIEPCTL_SNAK);
+ USB_OTG_OUTEP(i)->DOEPCTL = (USB_OTG_DOEPCTL_EPDIS | USB_OTG_DOEPCTL_SNAK);
dwc2 has less endpoints than config, please check
---------------------------------------------------------------
diff --git a/docs/source/share.rst b/docs/source/share.rst
index d52dbfcd..b2b2f0d2 100644
--- a/docs/source/share.rst
+++ b/docs/source/share.rst
@@ -17,4 +17,6 @@
- `printalyzer-timer: F-Stop enlarging timer and print exposure meter <https://github.com/dektronics/printalyzer-timer>`_
-- `MiSTeryNano: Atari STE MiSTery core for the Tang Nano 20k FPGA <https://github.com/harbaum/MiSTeryNano>`_ \ No newline at end of file
+- `MiSTeryNano: Atari STE MiSTery core for the Tang Nano 20k FPGA <https://github.com/harbaum/MiSTeryNano>`_
+
+- `Cherryuf2 <https://github.com/zhaqian12/Cherryuf2>`_ \ No newline at end of file