docs: update rst

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-06-24 17:57:39 +08:00
parent 734cacb177
commit 749cd8531f
13 changed files with 78 additions and 112 deletions

View File

@@ -0,0 +1,28 @@
usbd_adb
===============
本节主要介绍如何使用 adb device。支持 **cherrysh** 和 rt-thread **msh**,只需要在 main 中添加以下初始化即可。
.. code-block:: C
cherryadb_init(0, xxxxx);
如果使用 rt-thread还需要在 menuconfig 中使能 adb device。
.. figure:: img/rtt_adb_shell1.png
进入 adb
--------------
- 使用 **cherrysh** 时枚举完成以后自动进入 adb 模式
- 使用 **msh** 需要在 **msh** 中输入 ``adb_enter`` 进入 adb 模式
退出 adb
--------------
- 使用 **cherrysh** 时输入 ``exit`` 退出 adb 模式
- 使用 **msh** 需要在 **msh** 中输入 ``adb_exit`` 退出 adb 模式
.. figure:: img/cherryadb.png
.. figure:: img/rtt_adb_shell2.png