summaryrefslogtreecommitdiff
path: root/examples/make.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-22 19:18:03 +0700
committerhathach <[email protected]>2020-04-22 19:18:03 +0700
commit1fc7f54a8a05792d6e56d0ed14ded1c4a7b389bd (patch)
treeecc8477e9b5dd3d2538f5a48e15d0f48ea76ec52 /examples/make.mk
parent894a09f2ae7082fd9e850b76febed12dafecdcd4 (diff)
added swo as logger
tested with feather nrf52840 + jlink
Diffstat (limited to 'examples/make.mk')
-rw-r--r--examples/make.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/make.mk b/examples/make.mk
index 78581f813..319ceece8 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -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