mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
First of several changes needed to support multiple USB host root hubs
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<h1><big><font color="#3c34ec">
|
<h1><big><font color="#3c34ec">
|
||||||
<i>NuttX RTOS Porting Guide</i>
|
<i>NuttX RTOS Porting Guide</i>
|
||||||
</font></big></h1>
|
</font></big></h1>
|
||||||
<p>Last Updated: July 26, 2013</p>
|
<p>Last Updated: August 12, 2013</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -3433,6 +3433,8 @@ extern void up_ledoff(int led);
|
|||||||
<p>
|
<p>
|
||||||
<b>Examples</b>:
|
<b>Examples</b>:
|
||||||
<code>arch/arm/src/lpc17xx/lpc17_usbhost.c</code>.
|
<code>arch/arm/src/lpc17xx/lpc17_usbhost.c</code>.
|
||||||
|
<code>arch/arm/src/stm32/stm32_otgfshost.c</code>.
|
||||||
|
<code>arch/arm/src/sama5/sam_ohci.c</code>.
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@@ -3469,7 +3471,7 @@ extern void up_ledoff(int led);
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
<code>int (*wait)(FAR struct usbhost_driver_s *drvr, bool connected);</code>
|
<code>int (*wait)(FAR struct usbhost_driver_s *drvr, FAR const bool *connected);</code>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Wait for a device to be connected or disconnected.
|
Wait for a device to be connected or disconnected.
|
||||||
@@ -3477,10 +3479,10 @@ extern void up_ledoff(int led);
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
<code>int (*enumerate)(FAR struct usbhost_driver_s *drvr);</code>
|
<code>int (*enumerate)(FAR struct usbhost_driver_s *drvr, int rhpndx);</code>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Enumerate the connected device.
|
Enumerate the device connected to a root hub port.
|
||||||
As part of this enumeration process, the driver will
|
As part of this enumeration process, the driver will
|
||||||
(1) get the device's configuration descriptor,
|
(1) get the device's configuration descriptor,
|
||||||
(2) extract the class ID info from the configuration descriptor,
|
(2) extract the class ID info from the configuration descriptor,
|
||||||
|
|||||||
Reference in New Issue
Block a user