aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/stm32/usbdfu.h
diff options
context:
space:
mode:
authorGareth McMullin2013-03-17 10:17:05 +1300
committerGareth McMullin2013-03-17 10:17:05 +1300
commit87dad080e1f21710fb842ddadf15049c0cad5e11 (patch)
tree332e662b88b4fb4b43988e1679a6a707eb5fe1ec /src/platforms/stm32/usbdfu.h
parent931cd97f15a377144d740defa7cb838fbbbe9b71 (diff)
Fix build for f4discovery host.
Diffstat (limited to 'src/platforms/stm32/usbdfu.h')
-rw-r--r--src/platforms/stm32/usbdfu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platforms/stm32/usbdfu.h b/src/platforms/stm32/usbdfu.h
index 7472d7c..d331ca4 100644
--- a/src/platforms/stm32/usbdfu.h
+++ b/src/platforms/stm32/usbdfu.h
@@ -25,6 +25,10 @@
# define APP_ADDRESS 0x08002000
#endif
+/* Commands sent with wBlockNum == 0 as per ST implementation. */
+#define CMD_SETADDR 0x21
+#define CMD_ERASE 0x41
+
/* dfucore.c - DFU core, common to libopencm3 platforms. */
void dfu_init(const usbd_driver *driver);
void dfu_main(void);