summaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorroot <root@circe.panaceas.james.local>2014-11-13 17:39:18 +0000
committerroot <root@circe.panaceas.james.local>2014-11-13 17:39:18 +0000
commit5950acfb05fb3e172fa5710f1cda6ab347f51f2f (patch)
tree6188f6041b360bc37d3278dd6eac8fb3b5ec6b7d /boot
parent12287ff0a55f929bf840dcb4780d3f77b862c434 (diff)
downloadstm32_usb_kvm-5950acfb05fb3e172fa5710f1cda6ab347f51f2f.tar.gz
stm32_usb_kvm-5950acfb05fb3e172fa5710f1cda6ab347f51f2f.tar.bz2
stm32_usb_kvm-5950acfb05fb3e172fa5710f1cda6ab347f51f2f.zip
leds
Diffstat (limited to 'boot')
-rw-r--r--boot/Makefile2
-rw-r--r--boot/usbdfu.c4
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,