Skip to content

Commit 80657c3

Browse files
committed
Allow VECT_TAB_OFFSET to be redefined
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent bad5b56 commit 80657c3

File tree

7 files changed

+14
-0
lines changed

7 files changed

+14
-0
lines changed

system/STM32F2xx/system_stm32f2xx.c

+2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@
9393
/*!< Uncomment the following line if you need to relocate your vector Table in
9494
Internal SRAM. */
9595
/* #define VECT_TAB_SRAM */
96+
#ifndef VECT_TAB_OFFSET
9697
#define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field.
9798
This value must be a multiple of 0x200. */
99+
#endif
98100
/******************************************************************************/
99101

100102
/**

system/STM32F3xx/system_stm32f3xx.c

+2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@
113113
/*!< Uncomment the following line if you need to relocate your vector Table in
114114
Internal SRAM. */
115115
/* #define VECT_TAB_SRAM */
116+
#ifndef VECT_TAB_OFFSET
116117
#define VECT_TAB_OFFSET 0x0 /*!< Vector Table base offset field.
117118
This value must be a multiple of 0x200. */
119+
#endif
118120
/**
119121
* @}
120122
*/

system/STM32F4xx/system_stm32f4xx.c

+2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@
106106
/*!< Uncomment the following line if you need to relocate your vector Table in
107107
Internal SRAM. */
108108
/* #define VECT_TAB_SRAM */
109+
#ifndef VECT_TAB_OFFSET
109110
#define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field.
110111
This value must be a multiple of 0x200. */
112+
#endif
111113
/******************************************************************************/
112114

113115
/**

system/STM32F7xx/system_stm32f7xx.c

+2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@
9292
/*!< Uncomment the following line if you need to relocate your vector Table in
9393
Internal SRAM. */
9494
/* #define VECT_TAB_SRAM */
95+
#ifndef VECT_TAB_OFFSET
9596
#define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field.
9697
This value must be a multiple of 0x200. */
98+
#endif
9799
/******************************************************************************/
98100

99101
/**

system/STM32L0xx/system_stm32l0xx.c

+2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@
9696
/*!< Uncomment the following line if you need to relocate your vector Table in
9797
Internal SRAM. */
9898
/* #define VECT_TAB_SRAM */
99+
#ifndef VECT_TAB_OFFSET
99100
#define VECT_TAB_OFFSET 0x00U /*!< Vector Table base offset field.
100101
This value must be a multiple of 0x200. */
102+
#endif
101103
/******************************************************************************/
102104
/**
103105
* @}

system/STM32L1xx/system_stm32l1xx.c

+2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
/*!< Uncomment the following line if you need to relocate your vector Table in
9595
Internal SRAM. */
9696
/* #define VECT_TAB_SRAM */
97+
#ifndef VECT_TAB_OFFSET
9798
#define VECT_TAB_OFFSET 0x00U /*!< Vector Table base offset field.
9899
This value must be a multiple of 0x200. */
100+
#endif
99101
/**
100102
* @}
101103
*/

system/STM32L4xx/system_stm32l4xx.c

+2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,10 @@
139139
/*!< Uncomment the following line if you need to relocate your vector Table in
140140
Internal SRAM. */
141141
/* #define VECT_TAB_SRAM */
142+
#ifndef VECT_TAB_OFFSET
142143
#define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field.
143144
This value must be a multiple of 0x200. */
145+
#endif
144146
/******************************************************************************/
145147
/**
146148
* @}

0 commit comments

Comments
 (0)