aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/stm32f2
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 21:00:14 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 22:44:43 -0400
commitb52f574dd6ec75157aebc48f1504832c0dd1c281 (patch)
tree0880c917ae222ded920b8c392b54b86fb3b0d7d3 /wirish/stm32f2
parenteaf34012efe105c5c7e9654c5cc0e988e4bbd719 (diff)
downloadlibrambutan-b52f574dd6ec75157aebc48f1504832c0dd1c281.tar.gz
librambutan-b52f574dd6ec75157aebc48f1504832c0dd1c281.zip
STM32F2: Add SYSCFG support.
Turn it on at init() time on F2. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/stm32f2')
-rw-r--r--wirish/stm32f2/boards_setup.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/wirish/stm32f2/boards_setup.cpp b/wirish/stm32f2/boards_setup.cpp
index 9832bb7..d1ceac0 100644
--- a/wirish/stm32f2/boards_setup.cpp
+++ b/wirish/stm32f2/boards_setup.cpp
@@ -37,6 +37,7 @@
#include "boards_private.h"
#include <libmaple/gpio.h>
+#include <libmaple/syscfg.h>
#include <wirish/wirish_types.h>
// PLL configuration for 25 MHz external oscillator --> 120 MHz SYSCLK.
@@ -85,5 +86,10 @@ namespace wirish {
// Nothing to do.
}
+ void series_init(void) {
+ // We need SYSCFG for external interrupts
+ syscfg_init();
+ }
+
}
}