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:
patacongo
2010-12-16 00:49:02 +00:00
parent c922ad5596
commit e9c523ac51
5 changed files with 489 additions and 3 deletions
+4 -2
View File
@@ -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.
+2 -1
View File
@@ -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"
+3
View File
@@ -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 */