Skip to content

Commit 4a69072

Browse files
committed
INIT:GCC add call to HAL_Init
system_init, stops all on going timer. gcc _start , perform zero initialized. => HAL_Init must be done again also in GCC toolchain
1 parent b225a5c commit 4a69072

File tree

8 files changed

+0
-16
lines changed

8 files changed

+0
-16
lines changed

targets/TARGET_STM/TARGET_STM32F0/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
void mbed_sdk_init() {
3232
// Update the SystemCoreClock variable.
3333
SystemCoreClockUpdate();
34-
#if !defined(TOOLCHAIN_GCC_ARM)
3534
// Need to restart HAL driver after the RAM is initialized
3635
HAL_Init();
37-
#endif
3836
}

targets/TARGET_STM/TARGET_STM32F1/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ void mbed_sdk_init()
3232
{
3333
// Update the SystemCoreClock variable.
3434
SystemCoreClockUpdate();
35-
#if !defined(TOOLCHAIN_GCC_ARM)
3635
// Need to restart HAL driver after the RAM is initialized
3736
HAL_Init();
38-
#endif
3937
}

targets/TARGET_STM/TARGET_STM32F3/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ void mbed_sdk_init()
3232
{
3333
// Update the SystemCoreClock variable.
3434
SystemCoreClockUpdate();
35-
#if !defined(TOOLCHAIN_GCC_ARM)
3635
// Need to restart HAL driver after the RAM is initialized
3736
HAL_Init();
38-
#endif
3937
}

targets/TARGET_STM/TARGET_STM32F4/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ void mbed_sdk_init()
3333
{
3434
// Update the SystemCoreClock variable.
3535
SystemCoreClockUpdate();
36-
#if !defined(TOOLCHAIN_GCC_ARM)
3736
// Need to restart HAL driver after the RAM is initialized
3837
HAL_Init();
39-
#endif
4038
}
4139

4240
/**

targets/TARGET_STM/TARGET_STM32F7/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ void mbed_sdk_init()
3535
{
3636
// Update the SystemCoreClock variable.
3737
SystemCoreClockUpdate();
38-
#if !defined(TOOLCHAIN_GCC_ARM)
3938
// Need to restart HAL driver after the RAM is initialized
4039
HAL_Init();
41-
#endif
4240
}
4341

4442

targets/TARGET_STM/TARGET_STM32L0/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ void mbed_sdk_init()
3232
{
3333
// Update the SystemCoreClock variable.
3434
SystemCoreClockUpdate();
35-
#if !defined(TOOLCHAIN_GCC_ARM)
3635
// Need to restart HAL driver after the RAM is initialized
3736
HAL_Init();
38-
#endif
3937
}

targets/TARGET_STM/TARGET_STM32L1/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ void mbed_sdk_init()
3535
{
3636
// Update the SystemCoreClock variable.
3737
SystemCoreClockUpdate();
38-
#if !defined(TOOLCHAIN_GCC_ARM)
3938
// Need to restart HAL driver after the RAM is initialized
4039
HAL_Init();
41-
#endif
4240

4341
#if defined(TARGET_XDOT_L151CC)
4442
if (PWR->CSR & PWR_CSR_SBF) {

targets/TARGET_STM/TARGET_STM32L4/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ void mbed_sdk_init()
3232
{
3333
// Update the SystemCoreClock variable.
3434
SystemCoreClockUpdate();
35-
#if !defined(TOOLCHAIN_GCC_ARM)
3635
// Need to restart HAL driver after the RAM is initialized
3736
HAL_Init();
38-
#endif
3937
}

0 commit comments

Comments
 (0)