diff --git a/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_GCC/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_GCC/Boot/main.c index d40a5cd7..a9a50b6a 100644 --- a/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_GCC/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_GCC/Boot/main.c @@ -290,6 +290,7 @@ void HAL_MspDeInit(void) HAL_GPIO_DeInit(GPIOD, GPIO_PIN_9); /* UART clock disable. */ __HAL_RCC_USART3_CLK_DISABLE(); +#endif /* GPIO ports clock disable. */ __HAL_RCC_GPIOD_CLK_DISABLE(); @@ -300,7 +301,6 @@ void HAL_MspDeInit(void) /* SYSCFG and PWR clock disable. */ __HAL_RCC_PWR_CLK_DISABLE(); __HAL_RCC_SYSCFG_CLK_DISABLE(); -#endif } /*** end of HAL_MspDeInit ***/ diff --git a/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_IAR/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_IAR/Boot/main.c index bc4c9640..14ff6c68 100644 --- a/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_IAR/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_IAR/Boot/main.c @@ -287,6 +287,7 @@ void HAL_MspDeInit(void) HAL_GPIO_DeInit(GPIOD, GPIO_PIN_9); /* UART clock disable. */ __HAL_RCC_USART3_CLK_DISABLE(); +#endif /* GPIO ports clock disable. */ __HAL_RCC_GPIOD_CLK_DISABLE(); @@ -297,7 +298,6 @@ void HAL_MspDeInit(void) /* SYSCFG and PWR clock disable. */ __HAL_RCC_PWR_CLK_DISABLE(); __HAL_RCC_SYSCFG_CLK_DISABLE(); -#endif } /*** end of HAL_MspDeInit ***/ diff --git a/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_Keil/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_Keil/Boot/main.c index bd742d36..bde16bb3 100644 --- a/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_Keil/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_Keil/Boot/main.c @@ -290,6 +290,7 @@ void HAL_MspDeInit(void) HAL_GPIO_DeInit(GPIOD, GPIO_PIN_9); /* UART clock disable. */ __HAL_RCC_USART3_CLK_DISABLE(); +#endif /* GPIO ports clock disable. */ __HAL_RCC_GPIOD_CLK_DISABLE(); @@ -300,7 +301,6 @@ void HAL_MspDeInit(void) /* SYSCFG and PWR clock disable. */ __HAL_RCC_PWR_CLK_DISABLE(); __HAL_RCC_SYSCFG_CLK_DISABLE(); -#endif } /*** end of HAL_MspDeInit ***/