Files
mmi 5e6e8a8ff5 Stability Fix
Clearing flags instead of ITStatus seems to improve stability in EXTI interrupts

Added ASSERT functionality for STM std periphery library

Also busy updating the HW validation menu


git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@411 05563f52-14a8-4384-a975-3d1654cca0fa
2017-12-22 14:09:08 +00:00

71 lines
1.5 KiB
Makefile

# STM support library
STM32_STDPERIPH_INC = Libraries/STM32F10x_StdPeriph_Driver/inc/
CORE_DIR = Libraries/CMSIS/CM3/CoreSupport/
DEVICE_SUPPORT_DIR = Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x
SRC_DIR = Libraries/STM32F10x_StdPeriph_Driver/src/
INCLUDE_DIRS = \
-I$(DEVICE_SUPPORT_DIR) \
-I$(CORE_DIR) \
-I$(STM32_STDPERIPH_INC) \
OBJDIR_PREFIX = Libraries/STM32F10x_StdPeriph_Driver/obj
OBJDIR = $(OBJDIR_PREFIX)_$(BUILD)_$(LANG)
CROSS_COMPILE = arm-none-eabi-
CC = $(CROSS_COMPILE)gcc
CCFLAGS = -c -O2 -g -fno-common -mcpu=cortex-m3 -mthumb -DUSE_FULL_ASSERT $(INCLUDE_DIRS) -I. -Wall -Werror
AR = $(CROSS_COMPILE)ar
ARFLAGS = rs
OBJECTS = \
misc.o \
stm32f10x_adc.o \
stm32f10x_bkp.o \
stm32f10x_can.o \
stm32f10x_cec.o \
stm32f10x_crc.o \
stm32f10x_dac.o \
stm32f10x_dbgmcu.o \
stm32f10x_dma.o \
stm32f10x_exti.o \
stm32f10x_flash.o \
stm32f10x_fsmc.o \
stm32f10x_gpio.o \
stm32f10x_i2c.o \
stm32f10x_iwdg.o \
stm32f10x_pwr.o \
stm32f10x_rcc.o \
stm32f10x_rtc.o \
stm32f10x_sdio.o \
stm32f10x_spi.o \
stm32f10x_tim.o \
stm32f10x_usart.o \
stm32f10x_wwdg.o
LIB_PREFIX = libSTM_StdPeriph
LIBRARY = $(LIB_PREFIX)_$(BUILD)_$(LANG).a
vpath %.c $(SRC_DIR)
vpath %.o $(OBJDIR)
all: $(LIBRARY)
$(LIBRARY): $(OBJDIR) $(OBJECTS) | $(OBJDIR)
$(AR) $(ARFLAGS) $@ $(addprefix $(OBJDIR)/, $(OBJECTS))
%.o: %.c
$(CC) $(CCFLAGS) $< -o $(OBJDIR)/$@
clean:
rm -rf $(OBJDIR_PREFIX)* $(LIB_PREFIX)*
$(OBJDIR):
mkdir -p $@
.PHONY: all clean