This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 0a83b28f8e2f724cf7526e578fb3ad1214149ed9
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Tue Jun 11 14:44:06 2024 +0200

    hw/mcu/stm32f1: Remove duplicate code
    
    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]>
---
 hw/mcu/stm/stm32f1xx/src/system_stm32f1xx.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/hw/mcu/stm/stm32f1xx/src/system_stm32f1xx.c 
b/hw/mcu/stm/stm32f1xx/src/system_stm32f1xx.c
index 03f9a12c1..f7ca66010 100644
--- a/hw/mcu/stm/stm32f1xx/src/system_stm32f1xx.c
+++ b/hw/mcu/stm/stm32f1xx/src/system_stm32f1xx.c
@@ -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();
 }
 
 /**

Reply via email to