Skip to content

Commit

Permalink
hw/mcu/stm32f1: Remove duplicate code
Browse files Browse the repository at this point in the history
sequence of calls:
SystemClock_Config()
SystemCoreClockUpdate()
NVIC_Relocate()

was already moved to hal_system_init.c

This makes system_stm32f1xx.c more like original ST code

Signed-off-by: Jerzy Kasenberg <[email protected]>
  • Loading branch information
kasjer committed Jun 11, 2024
1 parent edb6800 commit 5b44e27
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions hw/mcu/stm/stm32f1xx/src/system_stm32f1xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,6 @@ SystemInit(void)
SystemInit_ExtMemCtl();
#endif
#endif

/* Configure System Clock */
SystemClock_Config();

/* Update SystemCoreClock global variable */
SystemCoreClockUpdate();

/* Relocate the vector table */
NVIC_Relocate();
}

/**
Expand Down

0 comments on commit 5b44e27

Please sign in to comment.