diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-21 02:36:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-21 02:36:11 +0000 |
commit | 923217b39059d97f275771a13d032da287b7327f (patch) | |
tree | 25b9523e971235f7744b94e611bac118225a0ea4 /nuttx/include | |
parent | a774c58708c599daef71e7a30cf83bb2a342a51c (diff) | |
download | px4-nuttx-923217b39059d97f275771a13d032da287b7327f.tar.gz px4-nuttx-923217b39059d97f275771a13d032da287b7327f.tar.bz2 px4-nuttx-923217b39059d97f275771a13d032da287b7327f.zip |
Add USB host support to NSH
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3206 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/usb/usbhost.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/include/nuttx/usb/usbhost.h b/nuttx/include/nuttx/usb/usbhost.h index abb0a7c02..2139df5e2 100644 --- a/nuttx/include/nuttx/usb/usbhost.h +++ b/nuttx/include/nuttx/usb/usbhost.h @@ -144,11 +144,13 @@ * Name: DRVR_WAIT * * Description: - * Wait for a device to be connected. + * Wait for a device to be connected or disconneced. * * Input Parameters: * drvr - The USB host driver instance obtained as a parameter from the call to * the class create() method. + * connected - TRUE: Wait for device to be connected; FALSE: wait for device to + * be disconnected * * Returned Values: * Zero (OK) is returned when a device in connected. This function will not @@ -161,7 +163,7 @@ * *******************************************************************************/ -#define DRVR_WAIT(drvr) ((drvr)->wait(drvr)) +#define DRVR_WAIT(drvr, connected) ((drvr)->wait(drvr,connected)) /************************************************************************************ * Name: DRVR_ENUMERATE @@ -411,9 +413,9 @@ struct usbhost_class_s struct usbhost_epdesc_s; struct usbhost_driver_s { - /* Wait for a device to connect. */ + /* Wait for a device to connect or disconnect. */ - int (*wait)(FAR struct usbhost_driver_s *drvr); + int (*wait)(FAR struct usbhost_driver_s *drvr, bool connected); /* Enumerate the connected device. As part of this enumeration process, * the driver will (1) get the device's configuration descriptor, (2) @@ -565,7 +567,7 @@ EXTERN const struct usbhost_registry_s *usbhost_findclass(const struct usbhost_i EXTERN int usbhost_storageinit(void); /******************************************************************************* - * Name: up_usbhostinitialize + * Name: usbhost_initialize * * Description: * Initialize USB host device controller hardware. |