mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-05-07 15:36:55 +08:00
docs: update note
Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
parent
51ef13d217
commit
8bc602dc74
@ -127,7 +127,7 @@ USB Device 移植要点
|
||||
|
||||
.. figure:: img/stm32_5.png
|
||||
|
||||
- 添加 CherryUSB 必须要的源码( **usbd_core.c** 、 **usb_dc_dwc2.c** 或者是 **usb_dc_fsdev.c** ),以及想要使用的 class 驱动,可以将对应的 class template 添加方便测试。
|
||||
- 添加 CherryUSB 必须要的源码( **usbd_core.c** 、 **dwc2/usb_dc_dwc2.c** 或者是 **fsdev/usb_dc_fsdev.c** ),以及想要使用的 class 驱动,可以将对应的 class template 添加方便测试。
|
||||
|
||||
.. figure:: img/stm32_6.png
|
||||
|
||||
@ -139,7 +139,7 @@ USB Device 移植要点
|
||||
|
||||
.. figure:: img/stm32_8.png
|
||||
|
||||
- 如果使用 dwc2 ip,需要增加 **usb_glue_st.c** 文件,并在 `usb_config.h` 中实现以下宏:
|
||||
- 如果使用 dwc2 ip,需要增加 **dwc2/usb_glue_st.c** 文件,并在 `usb_config.h` 中实现以下宏:
|
||||
|
||||
.. code-block:: C
|
||||
|
||||
@ -154,7 +154,7 @@ USB Device 移植要点
|
||||
#define CONFIG_USB_DWC2_TX4_FIFO_SIZE (64 / 4)
|
||||
#define CONFIG_USB_DWC2_TX5_FIFO_SIZE (64 / 4)
|
||||
|
||||
- 如果使用 fsdev ip,在 `usb_config.h` 中实现以下宏:
|
||||
- 如果使用 fsdev ip,(V1.4.4 开始需要增加 **fsdev/usb_glue_st.c**) 在 `usb_config.h` 中实现以下宏:
|
||||
|
||||
.. code-block:: C
|
||||
|
||||
|
@ -140,6 +140,8 @@
|
||||
|
||||
.. figure:: img/stm32_init2.png
|
||||
|
||||
.. note :: 下面步骤从 V1.4.4 开始不再需要,**fsdev/usb_glue_st.c**, **dwc2/usb_glue_st.c** 文件中已经实现
|
||||
|
||||
- 将 `stm32xxxx_hal_msp.c` 中的 `HAL_PCD_MspInit` 或者是 `HAL_HCD_MspInit` 中的内容复制到 `usb_dc_low_level_init` 和 `usb_hc_low_level_init` 函数中,举例如下:
|
||||
|
||||
.. figure:: img/stm32_init.png
|
||||
|
Loading…
x
Reference in New Issue
Block a user