usbdev: Fix build error with BOARD_USBDEV_SERIALSTR
This commit is contained in:
parent
0beba027e7
commit
1b1b1a025d
@ -38,6 +38,10 @@
|
||||
#include <nuttx/usb/usbdev.h>
|
||||
#include <nuttx/usb/usbdev_trace.h>
|
||||
|
||||
#ifdef CONFIG_BOARD_USBDEV_SERIALSTR
|
||||
# include <nuttx/board.h>
|
||||
#endif
|
||||
|
||||
#include "composite.h"
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -50,6 +50,13 @@
|
||||
#define COMPOSITE_CONFIGIDNONE (0) /* Config ID = 0 means to return to address mode */
|
||||
#define COMPOSITE_CONFIGID (1) /* The only supported configuration ID */
|
||||
|
||||
/* Descriptor strings */
|
||||
|
||||
#define COMPOSITE_MANUFACTURERSTRID (1)
|
||||
#define COMPOSITE_PRODUCTSTRID (2)
|
||||
#define COMPOSITE_SERIALSTRID (3)
|
||||
#define COMPOSITE_CONFIGSTRID (4)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
@ -93,13 +93,6 @@
|
||||
|
||||
#define COMPOSITE_STR_LANGUAGE (0x0409) /* en-us */
|
||||
|
||||
/* Descriptor strings */
|
||||
|
||||
#define COMPOSITE_MANUFACTURERSTRID (1)
|
||||
#define COMPOSITE_PRODUCTSTRID (2)
|
||||
#define COMPOSITE_SERIALSTRID (3)
|
||||
#define COMPOSITE_CONFIGSTRID (4)
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user