File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ MBED_WEAK void TargetBSP_Init(void) {
9494 /** Do nothing */
9595}
9696
97+ #ifndef MBED_DEBUG
9798#if MBED_CONF_TARGET_GPIO_RESET_AT_INIT
9899void GPIO_Full_Init (void ) {
99100 GPIO_InitTypeDef GPIO_InitStruct ;
@@ -162,6 +163,7 @@ void GPIO_Full_Init(void) {
162163#endif
163164}
164165#endif
166+ #endif
165167
166168// This function is called after RAM initialization and before main.
167169void mbed_sdk_init ()
@@ -313,9 +315,11 @@ void mbed_sdk_init()
313315#endif /* ! MBED_CONF_TARGET_LSE_AVAILABLE */
314316#endif /* DEVICE_RTC */
315317
318+ #ifndef MBED_DEBUG
316319#if MBED_CONF_TARGET_GPIO_RESET_AT_INIT
317320 /* Reset all GPIO */
318321 GPIO_Full_Init ();
322+ #endif
319323#endif
320324
321325 /* BSP initialization hook (external RAM, etc) */
You can’t perform that action at this time.
0 commit comments