From 3995bad80fedbebd70dc3864d99e93823a744b2e Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 21 Dec 2010 15:57:40 +0000 Subject: misc resource utilization fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3212 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/include/nuttx/usb/usb.h | 2 +- nuttx/include/nuttx/usb/usbhost.h | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'nuttx/include') 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 -- cgit v1.2.3