Skip to content

Commit 6a24ee0

Browse files
committed
Set -03 optimization
1 parent 809ad51 commit 6a24ee0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

firmware/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ INCLUDES+=-I$(SPL_USB_PATH)inc
3535
INCLUDES+=-I$(SRC_DIR)
3636
INCLUDES+=-I$(USB_DIR)
3737

38-
CFLAGS=-g -Wall -Werror
38+
CFLAGS=-g -Wall -Werror -O3
3939
CFLAGS+=$(INCLUDES) -MMD -MP
4040
CFLAGS+=-ffunction-sections -fdata-sections
4141
CFLAGS+=-mcpu=cortex-m3 -mthumb

firmware/libs/spl/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ INCLUDES+=-ISTM32_USB-FS-Device_Driver/inc/
1919
INCLUDES+=-ICMSIS/CM3/DeviceSupport/ST/STM32F10x/
2020
INCLUDES+=-ICMSIS/CM3/CoreSupport/
2121

22-
CFLAGS=-g -Wall -Werror
22+
CFLAGS=-g -Wall -Werror -O3
2323
CFLAGS+=-D$(CHIP) $(INCLUDES) -MMD -MP
2424
CFLAGS+=-mcpu=cortex-m3 -mthumb
2525
CFLAGS+=-ffreestanding -nostdlib

0 commit comments

Comments
 (0)