Add family define for the F1 Makefile and add a Makefile for the F2.

This commit is contained in:
Fergus Noble
2011-09-15 01:18:26 -07:00
committed by Stephen Caudle
parent 666b8f12d5
commit a4935eef57
2 changed files with 59 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
-ffunction-sections -fdata-sections -MD
-ffunction-sections -fdata-sections -MD -DSTM32F1
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = vector.o rcc.o gpio.o usart.o adc.o spi.o flash.o nvic.o \