summaryrefslogtreecommitdiff
path: root/usart/usart.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2013-07-07 19:57:19 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2013-07-07 19:57:19 +0200
commita8a0eb825ea7208502954865ab09e7ec8a90221c (patch)
tree632686dacbee7778b4371ce13eeda488a500c232 /usart/usart.cpp
parentc982426fd492b8645a04698f5a2b24e242902100 (diff)
Don't build STM32-specific code for other targets.
Diffstat (limited to 'usart/usart.cpp')
-rw-r--r--usart/usart.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/usart/usart.cpp b/usart/usart.cpp
index 61fe393..9de49af 100644
--- a/usart/usart.cpp
+++ b/usart/usart.cpp
@@ -1,3 +1,5 @@
+#if defined(STM32F1) || defined(STM32F3) || defined(STM32F4)
+
#include "usart.h"
template<>
@@ -5,3 +7,5 @@ void interrupt<Interrupt::USART1>() {
USART1.recv();
//GPIOB.ODR ^= 1 << 1;
}
+
+#endif