mirror of
https://github.com/sakumisu/CherryUSB.git
synced 2025-05-08 16:18:44 +08:00
Deploying to gh-pages from @ cherry-embedded/CherryUSB@4edd86c872 🚀
This commit is contained in:
parent
8ef72eef67
commit
fd21758d51
@ -166,7 +166,7 @@ USB Device 移植要点
|
||||
.. figure:: img/stm32_10.png
|
||||
.. figure:: img/stm32_11.png
|
||||
|
||||
.. note :: 以下两个步骤从 V1.4.4 开始不再需要,**usb_glue_st.c** 文件中已经实现
|
||||
.. note :: 如果使用的是 dwc2,以下两个步骤从 V1.4.4 开始不再需要,**usb_glue_st.c** 文件中已经实现
|
||||
|
||||
- 拷贝 **xxx_msp.c** 中的 **HAL_PCD_MspInit** 函数中的内容到 **usb_dc_low_level_init** 函数中,屏蔽 st 生成的 usb 初始化
|
||||
|
||||
@ -208,7 +208,7 @@ USB Host 移植要点
|
||||
#define CONFIG_USB_DWC2_PTX_FIFO_SIZE (1024 / 4)
|
||||
#define CONFIG_USB_DWC2_RX_FIFO_SIZE ((1012 - CONFIG_USB_DWC2_NPTX_FIFO_SIZE - CONFIG_USB_DWC2_PTX_FIFO_SIZE) / 4)
|
||||
|
||||
.. note :: 以下两个步骤从 V1.4.4 开始不再需要,**usb_glue_st.c** 文件中已经实现
|
||||
.. note :: 如果使用的是 dwc2,以下两个步骤从 V1.4.4 开始不再需要,**usb_glue_st.c** 文件中已经实现
|
||||
|
||||
- 拷贝 **xxx_msp.c** 中的 `HAL_HCD_MspInit` 函数中的内容到 `usb_hc_low_level_init` 函数中,屏蔽 st 生成的 usb 初始化
|
||||
- 在中断函数中调用 `USBH_IRQHandler`,并传入 `busid`
|
||||
|
@ -351,7 +351,7 @@
|
||||
</figure>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>以下两个步骤从 V1.4.4 开始不再需要,<strong>usb_glue_st.c</strong> 文件中已经实现</p>
|
||||
<p>如果使用的是 dwc2,以下两个步骤从 V1.4.4 开始不再需要,<strong>usb_glue_st.c</strong> 文件中已经实现</p>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>拷贝 <strong>xxx_msp.c</strong> 中的 <strong>HAL_PCD_MspInit</strong> 函数中的内容到 <strong>usb_dc_low_level_init</strong> 函数中,屏蔽 st 生成的 usb 初始化</p></li>
|
||||
@ -407,7 +407,7 @@
|
||||
</div>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>以下两个步骤从 V1.4.4 开始不再需要,<strong>usb_glue_st.c</strong> 文件中已经实现</p>
|
||||
<p>如果使用的是 dwc2,以下两个步骤从 V1.4.4 开始不再需要,<strong>usb_glue_st.c</strong> 文件中已经实现</p>
|
||||
</div>
|
||||
<ul class="simple">
|
||||
<li><p>拷贝 <strong>xxx_msp.c</strong> 中的 <cite>HAL_HCD_MspInit</cite> 函数中的内容到 <cite>usb_hc_low_level_init</cite> 函数中,屏蔽 st 生成的 usb 初始化</p></li>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user