diff options
| author | Ha Thach <[email protected]> | 2021-02-01 14:25:58 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-01 14:25:58 +0700 |
| commit | 26caddae239a9b2657121a8da81337cf14d85bc0 (patch) | |
| tree | 34b85bdb2853c173a1d9c29dff9df65f2621801e /examples/make.mk | |
| parent | 78f50518a48f55fe3a4d921895c5d6c400c355b0 (diff) | |
| parent | 0799a910730a3aa881f6292b2c7cbbc784690e7a (diff) | |
Merge pull request #621 from hathach/rp2040-logger-enumfix
Rp2040 logger and enum fix
Diffstat (limited to 'examples/make.mk')
| -rw-r--r-- | examples/make.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/make.mk b/examples/make.mk index e820989b7..5387a4ec4 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -112,13 +112,18 @@ endif # Log level is mapped to TUSB DEBUG option ifneq ($(LOG),) + CMAKE_DEFSYM += -DLOG=$(LOG) CFLAGS += -DCFG_TUSB_DEBUG=$(LOG) endif # Logger: default is uart, can be set to rtt or swo +ifneq ($(LOGGER),) + CMAKE_DEFSYM += -DLOGGER=$(LOGGER) +endif + ifeq ($(LOGGER),rtt) - RTT_SRC = lib/SEGGER_RTT CFLAGS += -DLOGGER_RTT -DSEGGER_RTT_MODE_DEFAULT=SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL + RTT_SRC = lib/SEGGER_RTT INC += $(TOP)/$(RTT_SRC)/RTT SRC_C += $(RTT_SRC)/RTT/SEGGER_RTT.c else ifeq ($(LOGGER),swo) |
