File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
LIB_NAME =libstm32f10x.a
2
2
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/
4
5
OBJ_DIR =obj/
5
6
6
7
TOOLCHAIN =../../../../compiler/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-
@@ -26,6 +27,8 @@ CFLAGS+=-ffreestanding -nostdlib
26
27
27
28
vpath % .c $(SRC_DIR )
28
29
30
+ SRCS_CORE =core_cm3.c
31
+
29
32
SRCS_PERIPH =misc.c stm32f10x_cec.c stm32f10x_dma.c stm32f10x_gpio.c \
30
33
stm32f10x_rcc.c stm32f10x_tim.c stm32f10x_adc.c stm32f10x_crc.c \
31
34
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 \
35
38
36
39
SRCS_USB =usb_core.c usb_init.c usb_int.c usb_mem.c usb_regs.c usb_sil.c
37
40
38
- SRCS =$(SRCS_PERIPH ) $(SRCS_USB )
41
+ SRCS =$(SRCS_CORE ) $( SRCS_PERIPH ) $(SRCS_USB )
39
42
40
43
OBJS =$(addprefix $(OBJ_DIR ) ,$(SRCS:.c=.o ) )
41
44
DEPS=$(OBJS:%.o =%.d)
You can’t perform that action at this time.
0 commit comments