Fix for ChibiOS 2.3.4
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 11 Oct 2012 01:53:34 +0000 (10:53 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 11 Oct 2012 01:53:34 +0000 (10:53 +0900)
ChangeLog
src/chconf.h

index 444e791..4253936 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-10-11  Niibe Yutaka  <gniibe@fsij.org>
 
 2012-10-11  Niibe Yutaka  <gniibe@fsij.org>
 
+       * src/chconf.h [DFU_SUPPORT] (CORTEX_VTOR_INIT): Define.
+
        * src/neug.ld.in (.sys): Follow the change of file layout.
 
        * src/halconf.h (HAL_USE_EXT, HAL_USE_RTC): Define.
        * src/neug.ld.in (.sys): Follow the change of file layout.
 
        * src/halconf.h (HAL_USE_EXT, HAL_USE_RTC): Define.
@@ -9,6 +11,11 @@
        * boards/FST_01/mcuconf.h (STM32_RTCSEL): Define.
        (STM32_USBPRE, STM32_MCO): Remove.
        * boards/STBEE/mcuconf.h: Likewise.
        * boards/FST_01/mcuconf.h (STM32_RTCSEL): Define.
        (STM32_USBPRE, STM32_MCO): Remove.
        * boards/STBEE/mcuconf.h: Likewise.
+       * boards/STM8S_DISCOVERY/mcuconf.h: Likewise.
+       * boards/OLIMEX_STM32_H103/mcuconf.h: Likewise.
+       * boards/STBEE_MINI/mcuconf.h: Likewise.
+       * boards/CQ_STARM/mcuconf.h: Likewise.
+       * boards/STM32_PRIMER2/mcuconf.h: Likewise.
 
        * boards/common/mcuconf-common.h (STM32_NO_INIT)
        (STM32_HSI_ENABLED, STM32_LSI_ENABLED, STM32_HSE_ENABLED)
 
        * boards/common/mcuconf-common.h (STM32_NO_INIT)
        (STM32_HSI_ENABLED, STM32_LSI_ENABLED, STM32_HSE_ENABLED)
index 82bd9d4..c0c7861 100644 (file)
@@ -3,6 +3,11 @@
 #ifndef _CHCONF_H_
 #define _CHCONF_H_
 
 #ifndef _CHCONF_H_
 #define _CHCONF_H_
 
+#include <config.h>
+#ifdef DFU_SUPPORT
+#define CORTEX_VTOR_INIT 0x00003000
+#endif
+
 #define CH_FREQUENCY                    1000
 #define CH_TIME_QUANTUM                 20
 #define CH_USE_NESTED_LOCKS             FALSE
 #define CH_FREQUENCY                    1000
 #define CH_TIME_QUANTUM                 20
 #define CH_USE_NESTED_LOCKS             FALSE