2011-09-15 08:18:26 +00:00
|
|
|
##
|
|
|
|
## This file is part of the libopencm3 project.
|
|
|
|
##
|
|
|
|
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
|
|
|
|
##
|
2012-03-02 23:29:23 +00:00
|
|
|
## This library is free software: you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU Lesser General Public License as published by
|
2011-09-15 08:18:26 +00:00
|
|
|
## the Free Software Foundation, either version 3 of the License, or
|
|
|
|
## (at your option) any later version.
|
|
|
|
##
|
2012-03-02 23:29:23 +00:00
|
|
|
## This library is distributed in the hope that it will be useful,
|
2011-09-15 08:18:26 +00:00
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2012-03-02 23:29:23 +00:00
|
|
|
## GNU Lesser General Public License for more details.
|
2011-09-15 08:18:26 +00:00
|
|
|
##
|
2012-03-02 23:29:23 +00:00
|
|
|
## You should have received a copy of the GNU Lesser General Public License
|
|
|
|
## along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2011-09-15 08:18:26 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
LIBNAME = libopencm3_stm32f2
|
|
|
|
|
2011-09-17 06:14:07 +00:00
|
|
|
PREFIX ?= arm-none-eabi
|
|
|
|
# PREFIX ?= arm-elf
|
2011-09-15 08:18:26 +00:00
|
|
|
CC = $(PREFIX)-gcc
|
|
|
|
AR = $(PREFIX)-ar
|
2011-10-28 19:44:53 +00:00
|
|
|
CFLAGS = -Os -g -Wall -Wextra -I../../../include -fno-common \
|
2011-09-15 08:18:26 +00:00
|
|
|
-mcpu=cortex-m3 -mthumb -Wstrict-prototypes \
|
|
|
|
-ffunction-sections -fdata-sections -MD -DSTM32F2
|
|
|
|
# ARFLAGS = rcsv
|
|
|
|
ARFLAGS = rcs
|
2012-10-29 22:53:59 +00:00
|
|
|
OBJS = rcc.o gpio2.o usart.o spi.o flash.o \
|
2012-10-22 23:32:42 +00:00
|
|
|
i2c.o exti2.o timer.o
|
2011-09-15 08:18:26 +00:00
|
|
|
|
2012-09-24 10:54:53 +00:00
|
|
|
VPATH += ../../usb:../:../../cm3
|
2011-09-15 08:18:26 +00:00
|
|
|
|
2012-08-13 21:37:07 +00:00
|
|
|
include ../../Makefile.include
|