summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-05 10:20:30 +0700
committerGitHub <[email protected]>2019-11-05 10:20:30 +0700
commit5209091c28f959479f595674c18f2011f7b0eeed (patch)
treef27198c3875ed2a1dd747438e4e2c00506959e2e /examples
parent66ce39368e0f4bba366956d3b0cd7a9ef87168b8 (diff)
parent3c49ff153e0f5219db9ad93f46672812676b965e (diff)
Merge branch 'master' into fix-issue-207
Diffstat (limited to 'examples')
-rw-r--r--examples/make.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/examples/make.mk b/examples/make.mk
index b736b8776..c2e0559fb 100644
--- a/examples/make.mk
+++ b/examples/make.mk
@@ -79,11 +79,16 @@ CFLAGS += \
# Debugging/Optimization
ifeq ($(DEBUG), 1)
- CFLAGS += -Og -ggdb -DCFG_TUSB_DEBUG=2
+ CFLAGS += -Og -ggdb
else
-ifneq ($(BOARD), spresense)
- CFLAGS += -flto -Os
-else
- CFLAGS += -Os
+ ifneq ($(BOARD),spresense)
+ CFLAGS += -flto -Os
+ else
+ CFLAGS += -Os
+ endif
endif
+
+# TUSB Logging option
+ifneq ($(LOG),)
+ CFLAGS += -DCFG_TUSB_DEBUG=$(LOG)
endif