|
96 | 96 | /** @addtogroup STM32WBAxx_System_Private_Defines |
97 | 97 | * @{ |
98 | 98 | */ |
99 | | -#if !defined (HSE_VALUE) |
100 | | -#define HSE_VALUE (32000000U) /*!< Value of the External oscillator in Hz */ |
101 | | -#endif /* HSE_VALUE */ |
102 | | - |
103 | | -#if !defined (HSI_VALUE) |
104 | | -#define HSI_VALUE (16000000U) /*!< Value of the Internal oscillator in Hz*/ |
105 | | -#endif /* HSI_VALUE */ |
106 | 99 |
|
107 | 100 | /* Note: Following vector table addresses must be defined in line with linker |
108 | 101 | configuration. */ |
109 | 102 | /*!< Uncomment the following line if you need to relocate the vector table |
110 | 103 | anywhere in Flash or Sram, else the vector table is kept at the automatic |
111 | 104 | remap of boot address selected */ |
112 | | -/* #define USER_VECT_TAB_ADDRESS */ |
| 105 | +/* #define VECT_TAB_BASE_ADDRESS 0x08000000 */ |
113 | 106 |
|
114 | | -#if defined(USER_VECT_TAB_ADDRESS) |
115 | 107 | /*!< Uncomment the following line if you need to relocate your vector Table |
116 | 108 | in Sram else user remap will be done in Flash. */ |
117 | 109 | /* #define VECT_TAB_SRAM */ |
| 110 | + |
| 111 | +#ifndef VECT_TAB_OFFSET |
| 112 | +#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. |
| 113 | + This value must be a multiple of 0x200. */ |
| 114 | +#endif |
| 115 | + |
| 116 | +#ifndef VECT_TAB_BASE_ADDRESS |
118 | 117 | #if defined(VECT_TAB_SRAM) |
119 | 118 | #define VECT_TAB_BASE_ADDRESS SRAM1_BASE /*!< Vector Table base address field. |
120 | 119 | This value must be a multiple of 0x200. */ |
121 | | -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. |
122 | | - This value must be a multiple of 0x200. */ |
123 | 120 | #else |
124 | 121 | #define VECT_TAB_BASE_ADDRESS FLASH_BASE /*!< Vector Table base address field. |
125 | 122 | This value must be a multiple of 0x200. */ |
126 | | -#define VECT_TAB_OFFSET 0x00000000U /*!< Vector Table base offset field. |
127 | | - This value must be a multiple of 0x200. */ |
128 | 123 | #endif /* VECT_TAB_SRAM */ |
129 | | -#endif /* USER_VECT_TAB_ADDRESS */ |
| 124 | +#endif /* VECT_TAB_BASE_ADDRESS */ |
130 | 125 |
|
131 | 126 | /******************************************************************************/ |
132 | 127 |
|
@@ -193,9 +188,7 @@ void SystemInit(void) |
193 | 188 | #endif |
194 | 189 |
|
195 | 190 | /* Configure the Vector Table location -------------------------------------*/ |
196 | | -#if defined(USER_VECT_TAB_ADDRESS) |
197 | 191 | SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation */ |
198 | | -#endif /* USER_VECT_TAB_ADDRESS */ |
199 | 192 |
|
200 | 193 | #if defined(STM32WBAXX_SI_CUT1_0) |
201 | 194 | /* Work-around for ADC peripheral issue possibly impacting system |
|
0 commit comments