Skip to content

Commit

Permalink
Add DFU USBD descriptor string for RedBear Duo
Browse files Browse the repository at this point in the history
  • Loading branch information
guohui committed Oct 9, 2015
1 parent cc90272 commit 1a24634
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bootloader/src/stm32f2xx/usbd_desc.c
Expand Up @@ -32,6 +32,19 @@
#include "usbd_req.h"
#include "usb_regs.h"

#if PLATFORM_ID==PLATFORM_DUO_PRODUCTION

#define USBD_LANGID_STRING 0x0409 //U.S. English
#define USBD_MANUFACTURER_STRING "RedBear"

#define USBD_PRODUCT_HS_STRING "Duo DFU Mode"
#define USBD_SERIALNUMBER_HS_STRING "00000000010B"

#define USBD_PRODUCT_FS_STRING "Duo DFU Mode"
#define USBD_SERIALNUMBER_FS_STRING "00000000010C"

#else

#define USBD_LANGID_STRING 0x0409 //U.S. English
#define USBD_MANUFACTURER_STRING "Particle"

Expand All @@ -41,6 +54,8 @@
#define USBD_PRODUCT_FS_STRING "Photon DFU Mode"
#define USBD_SERIALNUMBER_FS_STRING "00000000010C"

#endif

#define USBD_CONFIGURATION_HS_STRING "DFU Config"
#define USBD_INTERFACE_HS_STRING "DFU Interface"

Expand Down

0 comments on commit 1a24634

Please sign in to comment.