Names of some USB device definitions changed to avoid collisions

This commit is contained in:
Gregory Nutt
2013-09-20 10:00:30 -06:00
parent dbf07d6d01
commit 5d0131fc73
11 changed files with 49 additions and 26 deletions
+3
View File
@@ -5597,4 +5597,7 @@
* nuttx/arch/arm/src/sama5/sam_clockconfig.c: When 480MHz UPLL * nuttx/arch/arm/src/sama5/sam_clockconfig.c: When 480MHz UPLL
is used to drive OHCI, it should have a divider of 10. However, is used to drive OHCI, it should have a divider of 10. However,
that does not work. A divider of 5 does. Why? (2013-9-19). that does not work. A divider of 5 does. Why? (2013-9-19).
* Several USB device driver files: Change naming of SELFPOWERED
and REMOTEWAKEUP to avoid name collisions. Prepend the name
of the driver (for example CDCACM_SELFPOWERED) (201309-20).
+2 -2
View File
@@ -1173,7 +1173,7 @@ get [-b|-n] [-f <local-path>] -h <ip-address> <remote-path>
<tr> <tr>
<td><b><code>-b|-n</code></b></td> <td><b><code>-b|-n</code></b></td>
<td> <td>
Selects either binary (&quot;octect&quot;) or test (&quot;netascii&quot;) transfer Selects either binary (&quot;octet&quot;) or test (&quot;netascii&quot;) transfer
mode. Default: text. mode. Default: text.
</td> </td>
</tr> </tr>
@@ -1885,7 +1885,7 @@ put [-b|-n] [-f &lt;remote-path&gt;] -h &lt;ip-address&gt; &lt;local-path&gt;
<tr> <tr>
<td><b><code>-b|-n</code></b></td> <td><b><code>-b|-n</code></b></td>
<td> <td>
Selects either binary (&quot;octect&quot;) or test (&quot;netascii&quot;) transfer Selects either binary (&quot;octet&quot;) or test (&quot;netascii&quot;) transfer
mode. Default: text. mode. Default: text.
</td> </td>
</tr> </tr>
+1 -1
View File
@@ -1250,7 +1250,7 @@ Configurations
buffered USB debug data once every second: buffered USB debug data once every second:
Application Configuration -> NSH LIbrary: Application Configuration -> NSH LIbrary:
CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH CONFIG_NSH_USBDEV_TRACE=n : No builtin tracing from NSH (USB device only)
CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor CONFIG_NSH_ARCHINIT=y : Automatically start the USB monitor
Application Configuration -> System NSH Add-Ons: Application Configuration -> System NSH Add-Ons:
+2 -2
View File
@@ -154,7 +154,6 @@ CONFIG_SAMA5_DMAC1=y
CONFIG_SAMA5_UHPHS=y CONFIG_SAMA5_UHPHS=y
CONFIG_SAMA5_UDPHS=y CONFIG_SAMA5_UDPHS=y
# CONFIG_SAMA5_GMAC is not set # CONFIG_SAMA5_GMAC is not set
# CONFIG_SAMA5_EMAC is not set
# CONFIG_SAMA5_LCDC is not set # CONFIG_SAMA5_LCDC is not set
# CONFIG_SAMA5_ISI is not set # CONFIG_SAMA5_ISI is not set
# CONFIG_SAMA5_SSC0 is not set # CONFIG_SAMA5_SSC0 is not set
@@ -174,6 +173,8 @@ CONFIG_SAMA5_PIO_IRQ=y
# CONFIG_SAMA5_PIOC_IRQ is not set # CONFIG_SAMA5_PIOC_IRQ is not set
CONFIG_SAMA5_PIOD_IRQ=y CONFIG_SAMA5_PIOD_IRQ=y
# CONFIG_SAMA5_PIOE_IRQ is not set # CONFIG_SAMA5_PIOE_IRQ is not set
CONFIG_SAMA5_HAVE_GMAC=y
# CONFIG_SAMA5_HAVE_EMAC is not set
# #
# SPI device driver options # SPI device driver options
@@ -642,7 +643,6 @@ CONFIG_BUILTIN_PROXY_STACKSIZE=1024
# #
# CONFIG_EXAMPLES_BUTTONS is not set # CONFIG_EXAMPLES_BUTTONS is not set
# CONFIG_EXAMPLES_CAN is not set # CONFIG_EXAMPLES_CAN is not set
# CONFIG_EXAMPLES_CC3000BASIC is not set
# CONFIG_EXAMPLES_COMPOSITE is not set # CONFIG_EXAMPLES_COMPOSITE is not set
# CONFIG_EXAMPLES_CXXTEST is not set # CONFIG_EXAMPLES_CXXTEST is not set
# CONFIG_EXAMPLES_DHCPD is not set # CONFIG_EXAMPLES_DHCPD is not set
+3 -1
View File
@@ -134,7 +134,9 @@ static const struct usb_cfgdesc_s g_cfgdesc =
CDCACM_NINTERFACES, /* ninterfaces */ CDCACM_NINTERFACES, /* ninterfaces */
CDCACM_CONFIGID, /* cfgvalue */ CDCACM_CONFIGID, /* cfgvalue */
CDCACM_CONFIGSTRID, /* icfg */ CDCACM_CONFIGSTRID, /* icfg */
USB_CONFIG_ATTR_ONE|SELFPOWERED|REMOTEWAKEUP, /* attr */ USB_CONFIG_ATTR_ONE | /* attr */
CDCACM_SELFPOWERED |
CDCACM_REMOTEWAKEUP,
(CONFIG_USBDEV_MAXPOWER + 1) / 2 /* mxpower */ (CONFIG_USBDEV_MAXPOWER + 1) / 2 /* mxpower */
}; };
#endif #endif
+12
View File
@@ -103,6 +103,18 @@
#undef CONFIG_COMPOSITE_CONFIGSTR #undef CONFIG_COMPOSITE_CONFIGSTR
#define CONFIG_COMPOSITE_CONFIGSTR "Composite" #define CONFIG_COMPOSITE_CONFIGSTR "Composite"
#ifdef CONFIG_USBDEV_SELFPOWERED
# define COMPOSITE_SELFPOWERED USB_CONFIG_ATTR_SELFPOWER
#else
# define COMPOSITE_SELFPOWERED (0)
#endif
#ifdef CONFIG_USBDEV_REMOTEWAKEUP
# define COMPOSITE_REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP
#else
# define COMPOSITE_REMOTEWAKEUP (0)
#endif
/* Constituent devices ******************************************************/ /* Constituent devices ******************************************************/
#undef DEV1_IS_CDCACM #undef DEV1_IS_CDCACM
+3 -1
View File
@@ -125,7 +125,9 @@ static const struct usb_cfgdesc_s g_cfgdesc =
COMPOSITE_NINTERFACES, /* ninterfaces */ COMPOSITE_NINTERFACES, /* ninterfaces */
COMPOSITE_CONFIGID, /* cfgvalue */ COMPOSITE_CONFIGID, /* cfgvalue */
COMPOSITE_CONFIGSTRID, /* icfg */ COMPOSITE_CONFIGSTRID, /* icfg */
USB_CONFIG_ATTR_ONE|SELFPOWERED|REMOTEWAKEUP, /* attr */ USB_CONFIG_ATTR_ONE | /* attr */
COMPOSITE_SELFPOWERED |
COMPOSITE_REMOTEWAKEUP,
(CONFIG_USBDEV_MAXPOWER + 1) / 2 /* mxpower */ (CONFIG_USBDEV_MAXPOWER + 1) / 2 /* mxpower */
}; };
+9 -7
View File
@@ -139,16 +139,16 @@
/* USB Controller */ /* USB Controller */
#ifndef CONFIG_USBDEV_SELFPOWERED #ifdef CONFIG_USBDEV_SELFPOWERED
# define SELFPOWERED USB_CONFIG_ATTR_SELFPOWER # define PL2303_SELFPOWERED USB_CONFIG_ATTR_SELFPOWER
#else #else
# define SELFPOWERED (0) # define PL2303_SELFPOWERED (0)
#endif #endif
#ifndef CONFIG_USBDEV_REMOTEWAKEUP #ifdef CONFIG_USBDEV_REMOTEWAKEUP
# define REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP # define PL2303_REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP
#else #else
# define REMOTEWAKEUP (0) # define PL2303_REMOTEWAKEUP (0)
#endif #endif
#ifndef CONFIG_USBDEV_MAXPOWER #ifndef CONFIG_USBDEV_MAXPOWER
@@ -438,7 +438,9 @@ static const struct usb_cfgdesc_s g_cfgdesc =
PL2303_NINTERFACES, /* ninterfaces */ PL2303_NINTERFACES, /* ninterfaces */
PL2303_CONFIGID, /* cfgvalue */ PL2303_CONFIGID, /* cfgvalue */
PL2303_CONFIGSTRID, /* icfg */ PL2303_CONFIGSTRID, /* icfg */
USB_CONFIG_ATTR_ONE|SELFPOWERED|REMOTEWAKEUP, /* attr */ USB_CONFIG_ATTR_ONE | /* attr */
PL2303_SELFPOWERED |
PL2303_REMOTEWAKEUP,
(CONFIG_USBDEV_MAXPOWER + 1) / 2 /* mxpower */ (CONFIG_USBDEV_MAXPOWER + 1) / 2 /* mxpower */
}; };
+7 -7
View File
@@ -1,7 +1,7 @@
/**************************************************************************** /****************************************************************************
* drivers/usbdev/usbmsc.h * drivers/usbdev/usbmsc.h
* *
* Copyright (C) 2008-2012 Gregory Nutt. All rights reserved. * Copyright (C) 2008-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Gregory Nutt <gnutt@nuttx.org>
* *
* Mass storage class device. Bulk-only with SCSI subclass. * Mass storage class device. Bulk-only with SCSI subclass.
@@ -226,16 +226,16 @@
/* USB Controller */ /* USB Controller */
#ifndef CONFIG_USBDEV_SELFPOWERED #ifdef CONFIG_USBDEV_SELFPOWERED
# define SELFPOWERED USB_CONFIG_ATTR_SELFPOWER # define USBMSC_SELFPOWERED USB_CONFIG_ATTR_SELFPOWER
#else #else
# define SELFPOWERED (0) # define USBMSC_SELFPOWERED (0)
#endif #endif
#ifndef CONFIG_USBDEV_REMOTEWAKEUP #ifdef CONFIG_USBDEV_REMOTEWAKEUP
# define REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP # define USBMSC_REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP
#else #else
# define REMOTEWAKEUP (0) # define USBMSC_REMOTEWAKEUP (0)
#endif #endif
#ifndef CONFIG_USBDEV_MAXPOWER #ifndef CONFIG_USBDEV_MAXPOWER
+3 -1
View File
@@ -116,7 +116,9 @@ static const struct usb_cfgdesc_s g_cfgdesc =
USBMSC_NINTERFACES, /* ninterfaces */ USBMSC_NINTERFACES, /* ninterfaces */
USBMSC_CONFIGID, /* cfgvalue */ USBMSC_CONFIGID, /* cfgvalue */
USBMSC_CONFIGSTRID, /* icfg */ USBMSC_CONFIGSTRID, /* icfg */
USB_CONFIG_ATTR_ONE|SELFPOWERED|REMOTEWAKEUP, /* attr */ USB_CONFIG_ATTR_ONE | /* attr */
USBMSC_SELFPOWERED |
USBMSC_REMOTEWAKEUP,
(CONFIG_USBDEV_MAXPOWER + 1) / 2 /* mxpower */ (CONFIG_USBDEV_MAXPOWER + 1) / 2 /* mxpower */
}; };
#endif #endif
+4 -4
View File
@@ -220,15 +220,15 @@
/* USB Controller */ /* USB Controller */
#ifdef CONFIG_USBDEV_SELFPOWERED #ifdef CONFIG_USBDEV_SELFPOWERED
# define SELFPOWERED USB_CONFIG_ATTR_SELFPOWER # define CDCACM_SELFPOWERED USB_CONFIG_ATTR_SELFPOWER
#else #else
# define SELFPOWERED (0) # define CDCACM_SELFPOWERED (0)
#endif #endif
#ifdef CONFIG_USBDEV_REMOTEWAKEUP #ifdef CONFIG_USBDEV_REMOTEWAKEUP
# define REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP # define CDCACM_REMOTEWAKEUP USB_CONFIG_ATTR_WAKEUP
#else #else
# define REMOTEWAKEUP (0) # define CDCACM_REMOTEWAKEUP (0)
#endif #endif
#ifndef CONFIG_USBDEV_MAXPOWER #ifndef CONFIG_USBDEV_MAXPOWER