mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 09:38:37 +08:00
Some trivial USB-related changes
This commit is contained in:
@@ -243,7 +243,7 @@ static inline int usbhost_classbind(FAR struct usbhost_driver_s *drvr,
|
|||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
devclass = CLASS_CREATE(reg, drvr, id);
|
devclass = CLASS_CREATE(reg, drvr, id);
|
||||||
uvdbg("CLASS_CREATE: %p\n", devclass);
|
uvdbg("CLASS_CREATE: %p\n", devclass);
|
||||||
if (devclass)
|
if (devclass != NULL)
|
||||||
{
|
{
|
||||||
/* Then bind the newly instantiated class instance */
|
/* Then bind the newly instantiated class instance */
|
||||||
|
|
||||||
|
|||||||
@@ -474,7 +474,7 @@
|
|||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* drvr - The USB host driver instance obtained as a parameter from the call to
|
* drvr - The USB host driver instance obtained as a parameter from the call to
|
||||||
* the class create() method.
|
* the class create() method.
|
||||||
* ed - The IN or OUT endpoint descriptor for the device endpoint on which to
|
* ep - The IN or OUT endpoint descriptor for the device endpoint on which to
|
||||||
* perform the transfer.
|
* perform the transfer.
|
||||||
* buffer - A buffer containing the data to be sent (OUT endpoint) or received
|
* buffer - A buffer containing the data to be sent (OUT endpoint) or received
|
||||||
* (IN endpoint). buffer must have been allocated using DRVR_ALLOC
|
* (IN endpoint). buffer must have been allocated using DRVR_ALLOC
|
||||||
@@ -495,7 +495,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#define DRVR_TRANSFER(drvr,ed,buffer,buflen) ((drvr)->transfer(drvr,ed,buffer,buflen))
|
#define DRVR_TRANSFER(drvr,ep,buffer,buflen) ((drvr)->transfer(drvr,ep,buffer,buflen))
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: DRVR_DISCONNECT
|
* Name: DRVR_DISCONNECT
|
||||||
@@ -549,7 +549,7 @@ struct usbhost_class_s; /* Forward reference to the class state structure */
|
|||||||
struct usbhost_registry_s
|
struct usbhost_registry_s
|
||||||
{
|
{
|
||||||
/* This field is used to implement a singly-link registry structure. Because of
|
/* This field is used to implement a singly-link registry structure. Because of
|
||||||
* the presence of this link, provides of structy usbhost_registry_s instances must
|
* the presence of this link, provides of struct usbhost_registry_s instances must
|
||||||
* provide those instances in write-able memory (RAM).
|
* provide those instances in write-able memory (RAM).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user