File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 83
83
*/
84
84
85
85
#include "stm32l4xx.h"
86
- #include "hal_tick .h"
86
+ #include "nvic_addr .h"
87
87
88
88
#if !defined (HSE_VALUE )
89
89
#define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
@@ -215,20 +215,9 @@ void SystemInit(void)
215
215
#ifdef VECT_TAB_SRAM
216
216
SCB -> VTOR = SRAM_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal SRAM */
217
217
#else
218
- SCB -> VTOR = FLASH_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal FLASH */
218
+ SCB -> VTOR = NVIC_FLASH_VECTOR_ADDRESS ; /* Vector Table Relocation in Internal FLASH */
219
219
#endif
220
220
221
- /* Configure the Cube driver */
222
- SystemCoreClock = MSI_VALUE ; // At this stage the MSI is used as system clock
223
- HAL_Init ();
224
-
225
- /* Configure the System clock source, PLL Multiplier and Divider factors,
226
- AHB/APBx prescalers and Flash settings */
227
- SetSysClock ();
228
-
229
- /* Reset the timer to avoid issues after the RAM initialization */
230
- TIM_MST_RESET_ON ;
231
- TIM_MST_RESET_OFF ;
232
221
}
233
222
234
223
/**
You can’t perform that action at this time.
0 commit comments