aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorUwe Hermann2009-07-22 14:02:21 +0200
committerUwe Hermann2009-07-22 14:02:21 +0200
commit6db6d5b49c8f1b216dd4b5504acf9df35d61df4a (patch)
tree27de176ec9e650c8cac596f32c57a8fa2d17517d /lib
parent574f77f6df922ccbe366598e9b9da83852044042 (diff)
Add initial framework for USART support. So far only some #defines.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile2
-rw-r--r--lib/usart.c23
2 files changed, 24 insertions, 1 deletions
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 <uwe@hermann-uwe.de>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#include <libopenstm32.h>
+
+/* TODO */
+