diff --git a/drivers/usbdev/composite.c b/drivers/usbdev/composite.c index 87e1ce8919a4c..306cc40a6403b 100644 --- a/drivers/usbdev/composite.c +++ b/drivers/usbdev/composite.c @@ -38,6 +38,10 @@ #include #include +#ifdef CONFIG_BOARD_USBDEV_SERIALSTR +# include +#endif + #include "composite.h" /**************************************************************************** diff --git a/drivers/usbdev/composite.h b/drivers/usbdev/composite.h index ec885f87b425a..859e3e24116ed 100644 --- a/drivers/usbdev/composite.h +++ b/drivers/usbdev/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 ****************************************************************************/ diff --git a/drivers/usbdev/composite_desc.c b/drivers/usbdev/composite_desc.c index 80ab316ec2484..a5f959a27144d 100644 --- a/drivers/usbdev/composite_desc.c +++ b/drivers/usbdev/composite_desc.c @@ -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 ****************************************************************************/