From a57090ead973037c0de38aa67b55283e8dd776cb Mon Sep 17 00:00:00 2001 From: Dien-Nhung Nguyen-Phu Date: Thu, 11 Jul 2024 20:53:54 +0700 Subject: usb: enable debug log over uart --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ea1a881..dfa7759 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,8 @@ TARGET = badgemagic-ch582 ###################################### # building variables ###################################### -# debug build? -DEBUG = 1 +# Uncomment below line to enable debugging +# DEBUG = 1 # optimization for size OPT = -Os @@ -58,7 +58,7 @@ src/ble/profile/devinfo.c \ src/ble/setup.c \ src/ble/peripheral.c \ src/data.c \ - +src/usb/debug.c \ # ASM sources ASM_SOURCES = \ @@ -108,7 +108,7 @@ ASFLAGS = $(MCU) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections CFLAGS = $(MCU) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections ifeq ($(DEBUG), 1) -CFLAGS += -g -gdwarf-2 +CFLAGS += -g -gdwarf-2 -DDEBUG=$(DEBUG) endif -- cgit v1.2.3