compat with f072hub

This commit is contained in:
2018-03-07 22:04:40 +01:00
parent 4f34d43b3a
commit 374e5a2df9
5 changed files with 46 additions and 14 deletions
+9
View File
@@ -15,6 +15,7 @@ DISABLE_MSC := 0
CDC_LOOPBACK_TEST := 0
include User/gex.mk
#GEX_PLAT=F072_HUB
GEX_PLAT=F072_DISCOVERY
######################################
@@ -242,6 +243,14 @@ flash: $(BUILD_DIR)/$(TARGET).bin
@printf " FLASH $<\n"
@st-flash write $< 0x8000000
$(BUILD_DIR)/$(TARGET).dfu: $(BUILD_DIR)/$(TARGET).hex
@printf " DFU-GEN $<\n"
dfu-convert -i $< $@
dfu: $(BUILD_DIR)/$(TARGET).dfu
@printf " DFU UPLOAD $<\n"
dfu-util -a 0 -D $<
patch:
@./cubepatch.sh