mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Changes to get USB host driver compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3185 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -38,6 +38,8 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <nuttx/usb/usb.h>
|
||||
@@ -81,14 +83,14 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static bool usbhost_ismatch(const struct usbhost_id_s *classid,
|
||||
static bool usbhost_idmatch(const struct usbhost_id_s *classid,
|
||||
const struct usbhost_id_s *devid)
|
||||
{
|
||||
/* The base class ID, subclass and protocol have to match up in any event */
|
||||
|
||||
if (devid->base == classid->base &&
|
||||
devid->subclass == classid->subclass &&
|
||||
devid->proto == clsssid->proto)
|
||||
devid->proto == classid->proto)
|
||||
{
|
||||
/* If this is a vendor-specific class ID, then the VID and PID have to
|
||||
* match as well.
|
||||
|
||||
@@ -39,10 +39,11 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <nuttx/usb/usbhost.h>
|
||||
#include <arch/irq.h>
|
||||
#include <nuttx/usb/usbhost.h>
|
||||
|
||||
#include "usbhost_registry.h"
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@
|
||||
#include <nuttx/usb/usb.h>
|
||||
#include <nuttx/usb/usbhost.h>
|
||||
|
||||
#if defined(CONFIG_USBHOST) && !defined(CONFIG_DISABLE_MOUNTPOINT) && CONFIG_NFILE_DESCRIPTORS > 0
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@@ -1034,3 +1036,4 @@ int usbhost_storageinit(void)
|
||||
return usbhost_registerclass(&g_storage);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_USBHOST && !CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 */
|
||||
|
||||
Reference in New Issue
Block a user