Skip to content

Commit 2a7863a

Browse files
author
Josuah Demangeon
committed
samples: usb: shell: update the output in the README
Update the USB shell sample to the new syntax. This is based on tests done with native_sim, along with the virtual.conf, virtual.overlay and device_and_host_prj.conf extra config files. Signed-off-by: Josuah Demangeon <[email protected]>
1 parent dedc29a commit 2a7863a

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

samples/subsys/usb/shell/README.rst

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -50,37 +50,37 @@ Sample shell interaction
5050

5151
.. code-block:: console
5252
53-
uart:~$ usbd defaults
54-
dev: USB descriptors initialized
55-
uart:~$ usbd config add 1
56-
uart:~$ usbd class add foobaz 1
57-
dev: added USB class foobaz to configuration 1
58-
uart:~$ usbd init
53+
*** Booting Zephyr OS build v4.2.0-1588-g83f1bd7341de ***
54+
uart:~$ usbd defcfg
55+
dev: added default string descriptors
56+
dev: register FS loopback_0
57+
dev: register HS loopback_0
5958
dev: USB initialized
6059
uart:~$ usbh init
6160
host: USB host initialized
6261
uart:~$ usbh enable
6362
host: USB host enabled
64-
[611:00:28.620,000] <wrn> usbd_core: VBUS detected event
6563
uart:~$ usbh bus resume
6664
host: USB bus resumed
6765
uart:~$ usbd enable
68-
host: USB device connected
6966
dev: USB enabled
70-
uart:~$ usbh device descriptor device 0
71-
host: transfer finished 0x20006250, err 0
72-
00000000: 80 06 00 01 00 00 12 00 |........ |
73-
bLength 18
74-
bDescriptorType 1
75-
bcdUSB 200
76-
bDeviceClass 239
77-
bDeviceSubClass 2
78-
bDeviceProtocol 1
79-
bMaxPacketSize0 64
80-
idVendor 2fe3
81-
idProduct ffff
82-
bcdDevice 301
83-
iManufacturer 1
84-
iProduct 2
85-
iSerial 3
86-
bNumConfigurations 1
67+
[160:04:13.870,000] <inf> usb_loopback: Enable loopback_0
68+
uart:~$ usbh device list
69+
1
70+
uart:~$ usbh device descriptor device 1
71+
host: USB device with address 1
72+
bLength 18
73+
bDescriptorType 1
74+
bcdUSB 200
75+
bDeviceClass 239
76+
bDeviceSubClass 2
77+
bDeviceProtocol 1
78+
bMaxPacketSize0 64
79+
idVendor 2fe3
80+
idProduct ffff
81+
bcdDevice 402
82+
iManufacturer 1
83+
iProduct 2
84+
iSerial 3
85+
bNumConfigurations 1
86+
uart:~$

0 commit comments

Comments
 (0)