Skip to content

Commit 6326626

Browse files
committed
Added compilation of CM3
1 parent 24988b9 commit 6326626

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

firmware/libs/spl/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
LIB_NAME=libstm32f10x.a
22

3-
SRC_DIR=STM32F10x_StdPeriph_Driver/src/ STM32_USB-FS-Device_Driver/src/
3+
SRC_DIR=CMSIS/CM3/CoreSupport/ STM32F10x_StdPeriph_Driver/src/ \
4+
STM32_USB-FS-Device_Driver/src/
45
OBJ_DIR=obj/
56

67
TOOLCHAIN=../../../../compiler/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-
@@ -26,6 +27,8 @@ CFLAGS+=-ffreestanding -nostdlib
2627

2728
vpath %.c $(SRC_DIR)
2829

30+
SRCS_CORE=core_cm3.c
31+
2932
SRCS_PERIPH=misc.c stm32f10x_cec.c stm32f10x_dma.c stm32f10x_gpio.c \
3033
stm32f10x_rcc.c stm32f10x_tim.c stm32f10x_adc.c stm32f10x_crc.c \
3134
stm32f10x_exti.c stm32f10x_i2c.c stm32f10x_rtc.c stm32f10x_usart.c \
@@ -35,7 +38,7 @@ SRCS_PERIPH=misc.c stm32f10x_cec.c stm32f10x_dma.c stm32f10x_gpio.c \
3538

3639
SRCS_USB=usb_core.c usb_init.c usb_int.c usb_mem.c usb_regs.c usb_sil.c
3740

38-
SRCS=$(SRCS_PERIPH) $(SRCS_USB)
41+
SRCS=$(SRCS_CORE) $(SRCS_PERIPH) $(SRCS_USB)
3942

4043
OBJS=$(addprefix $(OBJ_DIR),$(SRCS:.c=.o))
4144
DEPS=$(OBJS:%.o=%.d)

0 commit comments

Comments
 (0)