From d488352cf4b5e46567f13debd0773580865f3c37 Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Tue, 18 Jul 2017 09:01:39 +0000 Subject: [PATCH] Refs #363. Minor code cleanup in STM32-P405/GCC demo. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@303 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- .../Boot/lib/system_stm32f4xx.c | 2 +- .../Prog/lib/system_stm32f4xx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Boot/lib/system_stm32f4xx.c b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Boot/lib/system_stm32f4xx.c index c46ffa79..be29802a 100644 --- a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Boot/lib/system_stm32f4xx.c +++ b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Boot/lib/system_stm32f4xx.c @@ -405,7 +405,7 @@ static void SetSysClock(void) RCC->CFGR |= RCC_CFGR_SW_PLL; /* Wait till the main PLL is used as system clock source */ - while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL); + while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL) { } } diff --git a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Prog/lib/system_stm32f4xx.c b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Prog/lib/system_stm32f4xx.c index 9b5f4904..6997463e 100644 --- a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Prog/lib/system_stm32f4xx.c +++ b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Prog/lib/system_stm32f4xx.c @@ -413,7 +413,7 @@ static void SetSysClock(void) RCC->CFGR |= RCC_CFGR_SW_PLL; /* Wait till the main PLL is used as system clock source */ - while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL); + while ((RCC->CFGR & (uint32_t)RCC_CFGR_SWS ) != RCC_CFGR_SWS_PLL) { } }