aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32.h
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-03-10 00:04:58 -0500
committerPerry Hung <iperry@gmail.com>2011-03-11 00:45:33 -0500
commit9872b3975bd40c55652bb9dead5f54e2be9740d0 (patch)
tree0937d0416fc307d0de10e4c3e0916b03fb525872 /libmaple/stm32.h
parent4651227fa9f7dece1dd24d2170db16c2e35dc04e (diff)
downloadlibrambutan-9872b3975bd40c55652bb9dead5f54e2be9740d0.tar.gz
librambutan-9872b3975bd40c55652bb9dead5f54e2be9740d0.zip
Fix merge error and compile error.
Diffstat (limited to 'libmaple/stm32.h')
-rw-r--r--libmaple/stm32.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmaple/stm32.h b/libmaple/stm32.h
index e65b28c..21c18df 100644
--- a/libmaple/stm32.h
+++ b/libmaple/stm32.h
@@ -8,5 +8,15 @@
#define PCLK1 36000000U
#define PCLK2 72000000U
+#ifdef STM32_MEDIUM_DENSITY
+ #define NR_INTERRUPTS 43
+#else
+#ifdef STM32_HIGH_DENSITY
+ #define NR_INTERRUPTS 60
+#else
+#error "No STM32 board type defined!"
+#endif
+#endif
+
#endif