Skip to content

Commit 3b1bd3b

Browse files
committed
system(WL): allow VECT_TAB_BASE_ADDRESS redefinition
Signed-off-by: Frederic Pillon <[email protected]>
1 parent eb8ab48 commit 3b1bd3b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

system/STM32WLxx/system_stm32wlxx.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -117,26 +117,29 @@
117117
#define VECT_TAB_OFFSET 0x00008000U /*!< Vector Table base offset field.
118118
This value must be a multiple of 0x100. */
119119
#endif
120+
#ifndef VECT_TAB_BASE_ADDRESS
120121
#if defined(VECT_TAB_SRAM)
121122
#define VECT_TAB_BASE_ADDRESS SRAM2_BASE /*!< Vector Table base address field.
122123
This value must be a multiple of 0x100. */
123124
#else
124125
#define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field.
125126
This value must be a multiple of 0x100. */
126127
#endif /* VECT_TAB_SRAM */
127-
128+
#endif /* !VECT_TAB_BASE_ADDRESS */
128129
#else /* CORE_CM4 */
129130
#ifndef VECT_TAB_OFFSET
130131
#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field.
131132
This value must be a multiple of 0x100. */
132133
#endif
134+
#ifndef VECT_TAB_BASE_ADDRESS
133135
#if defined(VECT_TAB_SRAM)
134136
#define VECT_TAB_BASE_ADDRESS SRAM1_BASE /*!< Vector Table base address field.
135137
This value must be a multiple of 0x100. */
136138
#else
137139
#define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field.
138140
This value must be a multiple of 0x100. */
139141
#endif /* VECT_TAB_SRAM */
142+
#endif /* !VECT_TAB_BASE_ADDRESS */
140143
#endif /* CORE_CM0PLUS */
141144

142145
/**

0 commit comments

Comments
 (0)