1
0
dht_test/Makefile
Arti Zirk 826084b927 Replace DCC printf logging with SEGGER RTT
It turns out that RTT also works with OpenOCD starting from v0.11
2021-06-27 18:32:43 +03:00

28 lines
578 B
Makefile

V=1
DEBUG=1
PROJECT = dht_test
BUILD_DIR = bin
OPT=-O0
#SHARED_DIR = ../my-common-code
CFILES = main.c
#AFILES += api-asm.S
DEVICE=STM32F103C8T6
OOCD_FILE=openocd.cfg
# Send debug messages via SEGGER RTT
CFILES += SEGGER_RTT.c SEGGER_RTT_printf.c SEGGER_RTT_Syscalls_GCC.c
VPATH += RTT
INCLUDES += $(patsubst %,-I%, . RTT)
# You shouldn't have to edit anything below here.
#VPATH += $(SHARED_DIR)
#INCLUDES += $(patsubst %,-I%, . $(SHARED_DIR))
OPENCM3_DIR=libopencm3
include $(OPENCM3_DIR)/mk/genlink-config.mk
include rules.mk
include $(OPENCM3_DIR)/mk/genlink-rules.mk