From 5c3b309fbc569e15e666e4a09661b8172ee48329 Mon Sep 17 00:00:00 2001
From: patacongo usbhost_registerclass()
- in order add its interface to the register.
+ in order add its interface to the registery.
Later, when a USB device is connected, the USB host controller will look up the USB host class driver that is needed to support the connected device in this registry.
@@ -2196,9 +2196,9 @@ extern void up_ledoff(int led);
As part of this enumeration process, the driver will
(1) get the device's configuration descriptor,
(2) extract the class ID info from the configuration descriptor,
- (3) call usbhost_findclass() to find the class that supports this device,
- (4) call the create() method on the struct usbhost_registry_s interface to get a class instance, and
- finally (5) call the connect() method of the struct usbhost_class_s interface.
+ (3) call usbhost_findclass(
) to find the class that supports this device,
+ (4) call the create()
method on the struct usbhost_registry_s interface
to get a class instance, and
+ finally (5) call the connect()
method of the struct usbhost_class_s
interface.
After that, the class is in charge of the sequence of operations.