blob: e11e784db14712e0a510928ad42eb74624381e74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
ADB Device
=================
The adb device demo refers to the `demo/adb/usbd_adb_template.c` template. It adapts to **cherrysh** (`platform/demo/adb/cherrysh_port.c`) and **rt-thread msh** (`platform/rtthread/usbd_adb_shell.c`) by default. You only need to add the following initialization in main.
.. code-block:: C
cherryadb_init(0, xxxxx);
If using rt-thread, you also need to enable adb device in menuconfig.
.. figure:: img/rtt_adb_shell1.png
Entering ADB
--------------
- When using **cherrysh**, automatically enters adb mode after enumeration is completed
- When using **msh**, you need to input ``adb_enter`` in **msh** to enter adb mode
Exiting ADB
--------------
- When using **cherrysh**, input ``exit`` to exit adb mode
- When using **msh**, you need to input ``adb_exit`` in **msh** to exit adb mode
.. figure:: img/cherryadb.png
.. figure:: img/rtt_adb_shell2.png
|