update(port/dwc2/usb_glue_gd): add check for ep

This commit is contained in:
sakumisu
2024-12-19 21:20:33 +08:00
parent effee4d4c2
commit 75e6dc6300
4 changed files with 25 additions and 2 deletions

View File

@@ -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 引脚必须为 4PB14/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
---------------------------------------------------------------

View File

@@ -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>`_
- `MiSTeryNano: Atari STE MiSTery core for the Tang Nano 20k FPGA <https://github.com/harbaum/MiSTeryNano>`_
- `Cherryuf2 <https://github.com/zhaqian12/Cherryuf2>`_