STM32 : gpio_reset_at_init disabled with MBED_DEBUG

pull/14337/head
jeromecoutant 2021-02-17 17:53:26 +01:00
parent 898439930a
commit 1eb16d1f25
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,7 @@ MBED_WEAK void TargetBSP_Init(void) {
/** Do nothing */
}
#ifndef MBED_DEBUG
#if MBED_CONF_TARGET_GPIO_RESET_AT_INIT
void GPIO_Full_Init(void) {
GPIO_InitTypeDef GPIO_InitStruct;
@ -162,6 +163,7 @@ void GPIO_Full_Init(void) {
#endif
}
#endif
#endif
// This function is called after RAM initialization and before main.
void mbed_sdk_init()
@ -313,9 +315,11 @@ void mbed_sdk_init()
#endif /* ! MBED_CONF_TARGET_LSE_AVAILABLE */
#endif /* DEVICE_RTC */
#ifndef MBED_DEBUG
#if MBED_CONF_TARGET_GPIO_RESET_AT_INIT
/* Reset all GPIO */
GPIO_Full_Init();
#endif
#endif
/* BSP initialization hook (external RAM, etc) */