From 3714c1ea3ee63fcf0f647cb5ef9ef5fde9ad938a Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Fri, 5 Nov 2021 10:56:56 +0000 Subject: [PATCH] Refs #1363. Corrected misplaced #endif in the Nucleo-F429ZI demo bootloader. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@908 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_GCC/Boot/main.c | 2 +- Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_IAR/Boot/main.c | 2 +- Target/Demo/ARMCM4_STM32F4_Nucleo_F429ZI_Keil/Boot/main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 ***/