2017-07-25 14:24:16 -07:00
|
|
|
OPENOCD ?= openocd
|
|
|
|
OPENOCD_IF ?= interface/stlink-v2.cfg
|
|
|
|
|
|
|
|
ifeq ($(TARGET_MCU),STM32F3)
|
|
|
|
OPENOCD_CFG := target/stm32f3x.cfg
|
|
|
|
|
|
|
|
else ifeq ($(TARGET_MCU),STM32F4)
|
2017-08-15 11:32:03 -07:00
|
|
|
OPENOCD_CFG := target/stm32f4x.cfg
|
2017-07-25 14:24:16 -07:00
|
|
|
|
|
|
|
else ifeq ($(TARGET_MCU),STM32F7)
|
|
|
|
OPENOCD_CFG := target/stm32f7x.cfg
|
|
|
|
else
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(OPENOCD_CFG),)
|
|
|
|
OPENOCD_COMMAND = $(OPENOCD) -f $(OPENOCD_IF) -f $(OPENOCD_CFG)
|
|
|
|
endif
|