@@ -65,15 +65,16 @@ MP_DEFINE_CONST_FUN_OBJ_0(usb_hid_disable_obj, usb_hid_disable);
65
65
//|
66
66
//| **Boot Devices**
67
67
//|
68
- //| Boot devices implement a fixed, predefined report descriptor, defined in
69
- //| https://www.usb.org/sites/default/files/hid1_12.pdf, Appendix B. A USB host
70
- //| can request to use the boot device if the USB device says it is available.
71
- //| Usually only a BIOS or other kind of limited-functionality
72
- //| host needs boot keyboard support.
68
+ //| A USB HID boot device implements a fixed, predefined report descriptor,
69
+ //| as defined in https://www.usb.org/sites/default/files/hid1_12.pdf, Appendix B.
70
+ //| Currently the only HID boot devices defined in the USB specification are a keyboard and a mouse.
71
+ //| A USB host can ask a USB device to use a boot device if the USB device says it is available.
72
+ //| Usually only a limited-functionality host like a BIOS or other boot-time software
73
+ //| needs boot device support.
73
74
//|
74
75
//| For example, to make a boot keyboard available, you can use this code::
75
76
//|
76
- //| usb_hid.enable((Device.KEYBOARD), boot_device=1) # 1 for a keyboard
77
+ //| usb_hid.enable((Device.KEYBOARD, ), boot_device=1) # 1 for a keyboard, 2 for a mouse
77
78
//|
78
79
//| If the host requests the boot keyboard, the report descriptor provided by `Device.KEYBOARD`
79
80
//| will be ignored, and the predefined report descriptor will be used.
0 commit comments