summaryrefslogtreecommitdiffstats
path: root/boot/usbdfu.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/usbdfu.c')
-rw-r--r--boot/usbdfu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot/usbdfu.c b/boot/usbdfu.c
index 33d48ec..b1d1b6d 100644
--- a/boot/usbdfu.c
+++ b/boot/usbdfu.c
@@ -25,6 +25,8 @@
#include <libopencm3/usb/usbd.h>
#include <libopencm3/usb/dfu.h>
+#include <id.h>
+
#define APP_ADDRESS 0x08002000
/* Commands sent with wBlockNum == 0 as per ST implementation. */
@@ -56,7 +58,7 @@ const struct usb_device_descriptor dev = {
.bDeviceProtocol = 0,
.bMaxPacketSize0 = 64,
.idVendor = 0x1d6b,
- .idProduct = 0x0ee3,
+ .idProduct = ID_PRODUCT,
.bcdDevice = 0x0200,
.iManufacturer = 1,
.iProduct = 2,