From a8a0eb825ea7208502954865ab09e7ec8a90221c Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 7 Jul 2013 19:57:19 +0200 Subject: Don't build STM32-specific code for other targets. --- usart/usart.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usart/usart.cpp') 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() { USART1.recv(); //GPIOB.ODR ^= 1 << 1; } + +#endif -- cgit v1.2.3