Skip to content

Commit

Permalink
ctxlink/makefile: Add trace protocol selection processing
Browse files Browse the repository at this point in the history
  • Loading branch information
sidprice committed Sep 4, 2024
1 parent 703885b commit 35eaedb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/platforms/ctxlink/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,18 @@ VPATH += platforms/common/stm32
SRC += \
platform.c \
traceswodecode.c \
traceswo.c \
serialno.c \
timing.c \
timing_stm32.c

ifeq ($(TRACESWO_PROTOCOL), 1)
SRC += traceswo.c
CFLAGS += -DTRACESWO_PROTOCOL=1
else
SRC += traceswoasync.c
CFLAGS += -DTRACESWO_PROTOCOL=2
endif

ifneq ($(BMP_BOOTLOADER), 1)
all: blackmagic.bin
else
Expand Down

0 comments on commit 35eaedb

Please sign in to comment.