Skip to content

Commit 8597f6a

Browse files
committed
Removed excess space simbol. Also runtime config check changed to compile time check.
1 parent 3f83163 commit 8597f6a

File tree

1 file changed

+3
-2
lines changed
  • targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H743xI/TARGET_NUCLEO_H743ZI2

1 file changed

+3
-2
lines changed

targets/TARGET_STM/TARGET_STM32H7/TARGET_STM32H743xI/TARGET_NUCLEO_H743ZI2/system_clock.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void SetSysClock(void)
7272
#if ((CLOCK_SOURCE) & USE_PLL_HSE_XTAL)
7373
/* 2- If fail try to start with HSE and external xtal */
7474
if (SetSysClock_PLL_HSE(0) == 0)
75-
#endif
75+
#endif
7676
{
7777
#if ((CLOCK_SOURCE) & USE_PLL_HSI)
7878
/* 3- If fail start with HSI clock */
@@ -85,6 +85,7 @@ void SetSysClock(void)
8585
}
8686
}
8787

88+
8889
#if ( ((CLOCK_SOURCE) & USE_PLL_HSE_XTAL) || ((CLOCK_SOURCE) & USE_PLL_HSE_EXTC) )
8990
/******************************************************************************/
9091
/* PLL (clocked by HSE) used as System clock source */
@@ -116,7 +117,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
116117
RCC_OscInitStruct.PLL.PLLM = 5; // 5 MHz
117118
RCC_OscInitStruct.PLL.PLLN = 192; // 960 MHz
118119
#else
119-
error("Unsupported externall clock value, check hse_value define\n")
120+
#error Unsupported externall clock value, check hse_value define
120121
#endif
121122
RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
122123
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;

0 commit comments

Comments
 (0)