From 6db6d5b49c8f1b216dd4b5504acf9df35d61df4a Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 22 Jul 2009 14:02:21 +0200 Subject: Add initial framework for USART support. So far only some #defines. --- lib/Makefile | 2 +- lib/usart.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 lib/usart.c (limited to 'lib') diff --git a/lib/Makefile b/lib/Makefile index aaad729..a3f66f1 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -27,7 +27,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../include -fno-common \ -mcpu=cortex-m3 -mthumb -Wstrict-prototypes # ARFLAGS = rcsv ARFLAGS = rcs -OBJS = gpio.o rcc.o +OBJS = rcc.o gpio.o usart.o # Be silent per default, but 'make V=1' will show all compiler calls. ifneq ($(V),1) diff --git a/lib/usart.c b/lib/usart.c new file mode 100644 index 0000000..02edd86 --- /dev/null +++ b/lib/usart.c @@ -0,0 +1,23 @@ +/* + * This file is part of the libopenstm32 project. + * + * Copyright (C) 2009 Uwe Hermann + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include + +/* TODO */ + -- cgit v1.2.3