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.
cherryadb_init(0, xxxxx);
If using rt-thread, you also need to enable adb device in menuconfig.
Entering ADB
When using cherrysh, automatically enters adb mode after enumeration is completed
When using msh, you need to input
adb_enterin msh to enter adb mode
Exiting ADB
When using cherrysh, input
exitto exit adb modeWhen using msh, you need to input
adb_exitin msh to exit adb mode