aboutsummaryrefslogtreecommitdiff
path: root/mcu
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-05-31 15:12:55 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-05-31 15:12:55 +0900
commit4889a5386b8c8111a417a655450c0875aababf0a (patch)
tree984d23ac42065703cf3a9799a0cfb3abc6aa9223 /mcu
parente02f2e71e6bc43302693c7431b8e91d8e1353562 (diff)
STM32F030: Fix use of vector on RAM
Diffstat (limited to 'mcu')
-rw-r--r--mcu/clk_gpio_init-stm32.c2
-rw-r--r--mcu/sys-stm32f030.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/mcu/clk_gpio_init-stm32.c b/mcu/clk_gpio_init-stm32.c
index ec94932..b5d6fe8 100644
--- a/mcu/clk_gpio_init-stm32.c
+++ b/mcu/clk_gpio_init-stm32.c
@@ -231,7 +231,7 @@ clock_init (void)
RCC->APB2RSTR = RCC_APB2RSTR_SYSCFGRST;
RCC->APB2RSTR = 0;
-# if defined(REQUIRE_CLOCK_GPIO_SETTING_IN_SYS)
+# if defined(STM32F0_USE_VECTOR_ON_RAM)
/* Use vectors on RAM */
SYSCFG->CFGR1 = (SYSCFG->CFGR1 & ~SYSCFG_CFGR1_MEM_MODE) | 3;
# endif
diff --git a/mcu/sys-stm32f030.c b/mcu/sys-stm32f030.c
index 04090d2..f811b97 100644
--- a/mcu/sys-stm32f030.c
+++ b/mcu/sys-stm32f030.c
@@ -17,6 +17,7 @@
#include <stdlib.h>
#include "board.h"
+#define STM32F0_USE_VECTOR_ON_RAM
#include "mcu/clk_gpio_init-stm32.c"