diff options
| author | Dien-Nhung Nguyen-Phu <kein@kienlab.com> | 2024-07-11 20:53:54 +0700 |
|---|---|---|
| committer | Dien-Nhung Nguyen-Phu <kein@kienlab.com> | 2024-07-11 22:11:21 +0700 |
| commit | a57090ead973037c0de38aa67b55283e8dd776cb (patch) | |
| tree | 5b425b37c27ccba612f516fd5206c23d14ae3624 /Makefile | |
| parent | b25d62d1362cfd711e6617a9212e3eddc4e9fddd (diff) | |
usb: enable debug log over uart
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |