Skip to content
Snippets Groups Projects
Commit a543cbba authored by Thibaut VIARD's avatar Thibaut VIARD
Browse files

fix gcc.mk with CHIP=>DEVICE

parent e11f99d7
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ CFLAGS += -Wunreachable-code
CFLAGS += -Wcast-align
CFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m0plus -mthumb -mlong-calls -ffunction-sections -nostdlib -std=c99
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP) -D$(VARIANT)
CFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(DEVICE) -D$(VARIANT)
# To reduce application size use only integer printf function.
CFLAGS += -Dprintf=iprintf
......@@ -68,7 +68,7 @@ CPPFLAGS += -Wpacked -Wredundant-decls -Winline -Wlong-long
#-fno-rtti -fno-exceptions
CPPFLAGS += --param max-inline-insns-single=500 -mcpu=cortex-m0plus -mthumb -mlong-calls -ffunction-sections -fdata-sections -std=c++98
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(CHIP)
CPPFLAGS += $(OPTIMIZATION) $(INCLUDES) -D$(DEVICE)
# To reduce application size use only integer printf function.
CPPFLAGS += -Dprintf=iprintf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment