summaryrefslogtreecommitdiff
path: root/rcc/rcc.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 /rcc/rcc.cpp
parentc982426fd492b8645a04698f5a2b24e242902100 (diff)
Don't build STM32-specific code for other targets.
Diffstat (limited to 'rcc/rcc.cpp')
-rw-r--r--rcc/rcc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rcc/rcc.cpp b/rcc/rcc.cpp
index 7e711f9..9f10f7c 100644
--- a/rcc/rcc.cpp
+++ b/rcc/rcc.cpp
@@ -1,3 +1,5 @@
+#if defined(STM32F1) || defined(STM32F3) || defined(STM32F4)
+
#include "rcc.h"
#include "flash.h"
@@ -49,3 +51,5 @@ void rcc_init() {
#endif
}
+
+#endif