aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/stm32f1
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/stm32f1')
-rw-r--r--wirish/stm32f1/boards_setup.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/wirish/stm32f1/boards_setup.cpp b/wirish/stm32f1/boards_setup.cpp
index da45730..d224ef2 100644
--- a/wirish/stm32f1/boards_setup.cpp
+++ b/wirish/stm32f1/boards_setup.cpp
@@ -71,9 +71,6 @@ namespace wirish {
void board_setup_gpio(void) {
gpio_init_all();
- // Initialize AFIO here, too, so peripheral remaps and external
- // interrupts work out of the box.
- afio_init();
}
void board_setup_usb(void) {
@@ -81,5 +78,12 @@ namespace wirish {
SerialUSB.begin();
#endif
}
+
+ void series_init(void) {
+ // Initialize AFIO here, too, so peripheral remaps and external
+ // interrupts work out of the box.
+ afio_init();
+ }
+
}
}