diff options
author | Perry Hung <iperry@gmail.com> | 2011-03-10 00:04:58 -0500 |
---|---|---|
committer | Perry Hung <iperry@gmail.com> | 2011-03-11 00:45:33 -0500 |
commit | 9872b3975bd40c55652bb9dead5f54e2be9740d0 (patch) | |
tree | 0937d0416fc307d0de10e4c3e0916b03fb525872 /libmaple/stm32.h | |
parent | 4651227fa9f7dece1dd24d2170db16c2e35dc04e (diff) | |
download | librambutan-9872b3975bd40c55652bb9dead5f54e2be9740d0.tar.gz librambutan-9872b3975bd40c55652bb9dead5f54e2be9740d0.zip |
Fix merge error and compile error.
Diffstat (limited to 'libmaple/stm32.h')
-rw-r--r-- | libmaple/stm32.h | 10 |
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 |