update rst

This commit is contained in:
sakumisu
2022-05-28 22:36:29 +08:00
parent c3875eca7d
commit 2bd70ac1f1
15 changed files with 197 additions and 35 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@@ -3,15 +3,14 @@
本节主要介绍使用 RT-Thread 提供的软件包管理器来配置工程,以 env 作为演示。本节操作不同芯片都一样,后续不再重复讲解。打开 env 以后使用 menuconfig 进入包管理器,并在如图所示路径中选择 CherryUSB。
.. figure:: img/env1.png
.. note:: 协议栈默认使用 printf而 rt-thread 对这个支持并不是很好,所以推荐添加一个 cflag 在你的工程中: `-Dprintf=rt_kprintf`
.. figure:: img/env0.png
从机配置
--------------------------
* 选择 Enable usb device mode 并敲回车进入。
.. figure:: img/env1.png
.. figure:: img/env2.png
* 首先第一个配置是配置 USB 的速度,分为 **FS、HIGH_IN_FULL、HS**,。其中, **HIGH_IN_FULL** 表示设备使用支持高速的 USB IP但是工作在全速模式下这里仅使用 **synopsys ip** 时使用。
@@ -62,6 +61,10 @@
.. figure:: img/stm32_init.png
其次将 `main.c` 中的 `SystemClock_Config` 替换掉 `board.c` 中的配置
.. figure:: img/stm32_init2.png
其他小伙伴的移植笔记
-------------------------
- @kylongmu `stm32h743-st-nucleo移植CherryUSB- CDC串口 <https://club.rt-thread.org/ask/article/3719.html>`_