seperate DEBUG from LOG
This commit is contained in:
@@ -79,11 +79,16 @@ CFLAGS += \
|
|||||||
|
|
||||||
# Debugging/Optimization
|
# Debugging/Optimization
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -Og -ggdb -DCFG_TUSB_DEBUG=2
|
CFLAGS += -Og -ggdb
|
||||||
else
|
else
|
||||||
ifneq ($(BOARD), spresense)
|
ifneq ($(BOARD),spresense)
|
||||||
CFLAGS += -flto -Os
|
CFLAGS += -flto -Os
|
||||||
else
|
else
|
||||||
CFLAGS += -Os
|
CFLAGS += -Os
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# TUSB Logging option
|
||||||
|
ifneq ($(LOG),)
|
||||||
|
CFLAGS += -DCFG_TUSB_DEBUG=$(LOG)
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user