added swo as logger

tested with feather nrf52840 + jlink
This commit is contained in:
hathach
2020-04-22 19:18:03 +07:00
parent 894a09f2ae
commit 1fc7f54a8a
7 changed files with 172 additions and 144 deletions

View File

@@ -80,7 +80,7 @@ ifneq ($(LOG),)
CFLAGS += -DCFG_TUSB_DEBUG=$(LOG)
endif
# Logger: default is UART, can be set to RTT
# Logger: default is uart, can be set to rtt or swo
ifeq ($(LOGGER),rtt)
RTT_SRC = lib/SEGGER_RTT
@@ -88,4 +88,8 @@ ifeq ($(LOGGER),rtt)
INC += $(TOP)/$(RTT_SRC)/RTT
SRC_C += $(RTT_SRC)/RTT/SEGGER_RTT_printf.c
SRC_C += $(RTT_SRC)/RTT/SEGGER_RTT.c
else ifeq ($(LOGGER),swo)
CFLAGS += -DLOGGER_SWO
endif