|
|
@@ -231,7 +231,7 @@
|
|
|
<ul class="simple">
|
|
|
<li><p>F103 使用 fsdev ip</p></li>
|
|
|
<li><p>F429 主从使用 USB1, 引脚 pb14/pb15, 并且都使用 dma 模式</p></li>
|
|
|
-<li><p>H7 设备使用 USB0, 引脚 pa11/pa12,主机使用 USB_OTG_HS ,引脚 pb14/pb15,并且需要做 nocache 处理</p></li>
|
|
|
+<li><p>H7 设备使用 USB0, 引脚 pa11/pa12,没有开DMA 模式。主机使用 USB1 ,引脚 pb14/pb15,并且需要做 nocache 处理</p></li>
|
|
|
</ul>
|
|
|
<p>demo 底下提供了 <strong>stm32xxx.ioc</strong> 文件,双击打开,点击 <strong>Generate Code</strong> 即可。</p>
|
|
|
<div class="admonition caution">
|
|
|
@@ -349,6 +349,10 @@
|
|
|
<figure class="align-default">
|
|
|
<img alt="../_images/stm32_11.png" src="../_images/stm32_11.png" />
|
|
|
</figure>
|
|
|
+<div class="admonition note">
|
|
|
+<p class="admonition-title">Note</p>
|
|
|
+<p>以下两个步骤从 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>
|
|
|
</ul>
|
|
|
@@ -401,6 +405,10 @@
|
|
|
<span class="cp">#define CONFIG_USB_DWC2_RX_FIFO_SIZE ((1012 - CONFIG_USB_DWC2_NPTX_FIFO_SIZE - CONFIG_USB_DWC2_PTX_FIFO_SIZE) / 4)</span>
|
|
|
</pre></div>
|
|
|
</div>
|
|
|
+<div class="admonition note">
|
|
|
+<p class="admonition-title">Note</p>
|
|
|
+<p>以下两个步骤从 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>
|
|
|
<li><p>在中断函数中调用 <cite>USBH_IRQHandler</cite>,并传入 <cite>busid</cite></p></li>
|