|
85 | 85 |
|
86 | 86 | #include "stm32wlxx.h"
|
87 | 87 |
|
88 |
| -#if !defined (HSE_VALUE) |
89 |
| - #define HSE_VALUE (32000000UL) /*!< Value of the External oscillator in Hz */ |
90 |
| -#endif /* HSE_VALUE */ |
91 |
| - |
92 |
| -#if !defined (MSI_VALUE) |
93 |
| - #define MSI_VALUE (4000000UL) /*!< Value of the Internal oscillator in Hz*/ |
94 |
| -#endif /* MSI_VALUE */ |
95 |
| - |
96 |
| -#if !defined (HSI_VALUE) |
97 |
| - #define HSI_VALUE (16000000UL) /*!< Value of the Internal oscillator in Hz*/ |
98 |
| -#endif /* HSI_VALUE */ |
99 |
| - |
100 |
| -#if !defined (LSI_VALUE) |
101 |
| - #define LSI_VALUE (32000UL) /*!< Value of LSI in Hz*/ |
102 |
| -#endif /* LSI_VALUE */ |
103 |
| - |
104 |
| -#if !defined (LSE_VALUE) |
105 |
| - #define LSE_VALUE (32768UL) /*!< Value of LSE in Hz*/ |
106 |
| -#endif /* LSE_VALUE */ |
107 |
| - |
108 | 88 | /**
|
109 | 89 | * @}
|
110 | 90 | */
|
|
121 | 101 | * @{
|
122 | 102 | */
|
123 | 103 |
|
| 104 | +#ifndef VECT_TAB_OFFSET |
| 105 | +#define VECT_TAB_OFFSET 0x00008000U /*!< Vector Table base offset field. |
| 106 | + This value must be a multiple of 0x100. */ |
| 107 | +#else |
| 108 | +#define USER_VECT_TAB_ADDRESS |
| 109 | +#endif |
| 110 | + |
124 | 111 | /* Note: Following vector table addresses must be defined in line with linker
|
125 | 112 | configuration. */
|
126 | 113 | /*!< Uncomment the following line if you need to relocate CPU1 CM4 and/or CPU2
|
|
135 | 122 | #if defined(VECT_TAB_SRAM)
|
136 | 123 | #define VECT_TAB_BASE_ADDRESS SRAM2_BASE /*!< Vector Table base address field.
|
137 | 124 | This value must be a multiple of 0x100. */
|
138 |
| -#define VECT_TAB_OFFSET 0x00008000U /*!< Vector Table base offset field. |
139 |
| - This value must be a multiple of 0x100. */ |
140 | 125 | #else
|
141 | 126 | #define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field.
|
142 | 127 | This value must be a multiple of 0x100. */
|
143 |
| -#define VECT_TAB_OFFSET 0x00020000U /*!< Vector Table base offset field. |
144 |
| - This value must be a multiple of 0x100. */ |
145 | 128 | #endif
|
146 | 129 | #else /* CORE_CM4 */
|
147 | 130 | /*!< Uncomment this line for user vector table remap in Sram else user remap
|
|
150 | 133 | #if defined(VECT_TAB_SRAM)
|
151 | 134 | #define VECT_TAB_BASE_ADDRESS SRAM1_BASE /*!< Vector Table base address field.
|
152 | 135 | This value must be a multiple of 0x200. */
|
153 |
| -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. |
154 |
| - This value must be a multiple of 0x200. */ |
155 | 136 | #else
|
156 | 137 | #define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field.
|
157 | 138 | This value must be a multiple of 0x200. */
|
158 |
| -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. |
159 |
| - This value must be a multiple of 0x200. */ |
160 | 139 | #endif
|
161 | 140 | #endif
|
162 | 141 | #endif
|
|
0 commit comments