Add first example project (framework) using libopenstm32.

This is intended as a small blink example for the Olimex STM32-H103 board.
It doesn't do anything useful (yet), but it builds fine.

There's a sample Makefile and a preliminary ld script (which probably
needs some more work).
This commit is contained in:
Uwe Hermann
2009-07-16 14:29:00 +02:00
parent c62ca6143d
commit 0efee48451
4 changed files with 128 additions and 1 deletions

View File

@@ -18,6 +18,8 @@
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
##
LIBNAME = libopenstm32
# PREFIX ?= arm-none-eabi
PREFIX ?= arm-elf
CC = $(PREFIX)-gcc
@@ -25,7 +27,6 @@ AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../include -fno-common \
-mcpu=cortex-m3 -mthumb
ARFLAGS = rcsv
LIBNAME = libopenstm32
OBJS = gpio.o
all: $(LIBNAME).a