Merge pull request #10673 from KarateBrot/sdft
[betaflight.git] / make / openocd.mk
blob3aaca8c602e975fd5247f2309213dbfa8ca95b89
1 OPENOCD ?= openocd
2 OPENOCD_IF ?= interface/stlink-v2.cfg
4 ifeq ($(TARGET_MCU),STM32F3)
5 OPENOCD_CFG := target/stm32f3x.cfg
7 else ifeq ($(TARGET_MCU),STM32F4)
8 OPENOCD_CFG := target/stm32f4x.cfg
10 else ifeq ($(TARGET_MCU),STM32F7)
11 OPENOCD_CFG := target/stm32f7x.cfg
12 else
13 endif
15 ifneq ($(OPENOCD_CFG),)
16 OPENOCD_COMMAND = $(OPENOCD) -f $(OPENOCD_IF) -f $(OPENOCD_CFG)
17 endif