diff options
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 -------------- |
