diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-21 15:57:40 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-21 15:57:40 +0000 |
commit | 3995bad80fedbebd70dc3864d99e93823a744b2e (patch) | |
tree | 3ce1709919fc0183fbc5caa9ae4969fdcdcaee18 /nuttx/include | |
parent | 3372fb6c418281542c00acc69d3a28fbcb135cd1 (diff) | |
download | px4-nuttx-3995bad80fedbebd70dc3864d99e93823a744b2e.tar.gz px4-nuttx-3995bad80fedbebd70dc3864d99e93823a744b2e.tar.bz2 px4-nuttx-3995bad80fedbebd70dc3864d99e93823a744b2e.zip |
misc resource utilization fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3212 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/usb/usb.h | 2 | ||||
-rw-r--r-- | nuttx/include/nuttx/usb/usbhost.h | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/nuttx/include/nuttx/usb/usb.h b/nuttx/include/nuttx/usb/usb.h index 69b9a1c1f..6e45334e6 100644 --- a/nuttx/include/nuttx/usb/usb.h +++ b/nuttx/include/nuttx/usb/usb.h @@ -230,7 +230,7 @@ struct usb_devdesc_s uint8_t subclass; /* Device sub-class */ uint8_t protocol; /* Device protocol */ uint8_t mxpacketsize; /* Max packet size (ep0) */ - uint8_t vender[2]; /* Vendor ID */ + uint8_t vendor[2]; /* Vendor ID */ uint8_t product[2]; /* Product ID */ uint8_t device[2]; /* Device ID */ uint8_t imfgr; /* Manufacturer */ diff --git a/nuttx/include/nuttx/usb/usbhost.h b/nuttx/include/nuttx/usb/usbhost.h index 8a7457bbd..fc4d6ad55 100644 --- a/nuttx/include/nuttx/usb/usbhost.h +++ b/nuttx/include/nuttx/usb/usbhost.h @@ -263,12 +263,14 @@ * Input Parameters: * drvr - The USB host driver instance obtained as a parameter from the call to * the class create() method. - * req - Describes the request to be sent. This data will be copied from the - * user provided memory. Therefore, the req buffer may be declared on the - * stack. + * req - Describes the request to be sent. This request must lie in memory + * created by DRVR_ALLOC. * buffer - A buffer used for sending the request and for returning any * responses. This buffer must be large enough to hold the length value - * in the request description. buffer must have been allocated using DRVR_ALLOC + * in the request description. buffer must have been allocated using DRVR_ALLOC. + * + * NOTE: On an IN transaction, req and buffer may refer to the same allocated + * memory. * * Returned Values: * On success, zero (OK) is returned. On a failure, a negated errno value is |