summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2019-11-03 17:50:41 -0500
committerGitHub <[email protected]>2019-11-03 17:50:41 -0500
commit68a53e05fc49bfa46c7cfb1c8e598519d90ec39c (patch)
tree7d93ecb09489e30c87ad16114eb470e504226fe3 /examples
parentcebc06681315cab60febe057e0b1e9e197518316 (diff)
parent62f8c14fae1c7c2f7d5cd5246e18f305d638f5f6 (diff)
Merge pull request #2 from hathach/pigrew-ZLP_Request2
zlp request2. PR for PR (has issues with STM32F0 FSDEV)
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