diff options
Diffstat (limited to 'boot')
-rw-r--r-- | boot/Makefile | 2 | ||||
-rw-r--r-- | boot/usbdfu.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/boot/Makefile b/boot/Makefile index 679662b..86d4d2c 100644 --- a/boot/Makefile +++ b/boot/Makefile @@ -28,5 +28,5 @@ OBJS = ${CSRCS:%.c=%.o} include ../Makefile.include -CFLAGS += -g +CFLAGS += -I.. 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, |