diff options
| author | sakumisu <[email protected]> | 2026-10-06 21:07:05 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2026-10-06 21:09:04 +0800 |
| commit | fb68402c3f462e5e79eb22852a31db1ff863564d (patch) | |
| tree | cd2a9ae6e345c3b8a5184cd9fa73b7523cd337c1 /docs | |
| parent | e43168b9f38bd55851c1cfe32579636e9363e01a (diff) | |
docs: update adb rst
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/zh/demo/usbd_adb.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/zh/demo/usbd_adb.rst b/docs/zh/demo/usbd_adb.rst index 6855135d..e22fccde 100644 --- a/docs/zh/demo/usbd_adb.rst +++ b/docs/zh/demo/usbd_adb.rst @@ -1,7 +1,7 @@ ADB Device ================= -adb device demo 参考 `demo/adb/usbd_adb_template.c` 模板。默认适配 **cherrysh** (`platform/demo/adb/cherrysh_port.c`) 和 **rt-thread msh** (`platform/rtthread/usbd_adb_shell.c`),只需要在 main 中添加以下初始化即可。 +adb device demo 参考 `demo/adb_template.c` 模板。调用如下: .. code-block:: C @@ -11,6 +11,20 @@ adb device demo 参考 `demo/adb/usbd_adb_template.c` 模板。默认适配 **ch .. figure:: img/rtt_adb_shell1.png +shell 使用 +------------------- + +默认支持 **cherrysh** 和 **rt-thread msh**,如果使用其他 shell,需自行适配。 + +.. note:: 如使用 cherrysh,请将 class/adb/usbd_adb_cherrysh.c 加入到编译系统 + +sync 使用 +------------------- + +默认支持 **fatfs** 和 **rt-thread dfs**。如果使用 fatfs, **需要在代码初始化之前 mount 文件系统,并且根路径为 "/" **。参考 **platform/fatfs/vfs_fatfs_port.c**。 + +.. note:: 如使用 sync 功能和 fatfs,请将 class/adb/usbd_adb_sync.c,platform/fatfs/vfs_fatfs_port.c 加入到编译系统 + 进入 adb -------------- |
