summaryrefslogtreecommitdiff
path: root/usart/usart.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-08-07 16:50:46 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-08-07 16:50:46 +0200
commite586c178073b9a0fee90d5fc8e795d266ebd7b7d (patch)
treeca9a9c40bab37d5af440c80833755223e2bdd946 /usart/usart.cpp
Initial import.
Most sources are split off from suzumebachi project revision 2fc77d2 as is with some path changes. New build rules introduced.
Diffstat (limited to 'usart/usart.cpp')
-rw-r--r--usart/usart.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/usart/usart.cpp b/usart/usart.cpp
new file mode 100644
index 0000000..61fe393
--- /dev/null
+++ b/usart/usart.cpp
@@ -0,0 +1,7 @@
+#include "usart.h"
+
+template<>
+void interrupt<Interrupt::USART1>() {
+ USART1.recv();
+ //GPIOB.ODR ^= 1 << 1;
+}