Skip to content

Commit 7851d47

Browse files
committed
Fix astyle
1 parent 2bbe373 commit 7851d47

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

Diff for: variants/STM32F7xx/F723I(C-E)(K-T)_F730I8K_F733IE(K-T)/generic_clock.c

+17-21
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@
1010
*
1111
*******************************************************************************
1212
*/
13-
#if defined(ARDUINO_GENERIC_F723ICKX) || defined(ARDUINO_GENERIC_F723ICTX) ||\
14-
defined(ARDUINO_GENERIC_F723IEKX) || defined(ARDUINO_GENERIC_F723IETX) ||\
15-
defined(ARDUINO_GENERIC_F730I8KX) || defined(ARDUINO_GENERIC_F733IEKX) ||\
13+
#if defined(ARDUINO_GENERIC_F723ICKX) || defined(ARDUINO_GENERIC_F723ICTX) || \
14+
defined(ARDUINO_GENERIC_F723IEKX) || defined(ARDUINO_GENERIC_F723IETX) || \
15+
defined(ARDUINO_GENERIC_F730I8KX) || defined(ARDUINO_GENERIC_F733IEKX) || \
1616
defined(ARDUINO_GENERIC_F733IETX)
1717
#include "pins_arduino.h"
1818

1919
/**
20-
* @brief System Clock Configuration
21-
* @param None
22-
* @retval None
23-
*/
20+
* @brief System Clock Configuration
21+
* @param None
22+
* @retval None
23+
*/
2424
WEAK void SystemClock_Config(void)
2525
{
2626
/* SystemClock_Config can be generated by STM32CubeMX */
27-
RCC_OscInitTypeDef RCC_OscInitStruct = {};
27+
RCC_OscInitTypeDef RCC_OscInitStruct = {};
2828
RCC_ClkInitTypeDef RCC_ClkInitStruct = {};
2929

3030
/** Configure the main internal regulator output voltage
31-
*/
31+
*/
3232
__HAL_RCC_PWR_CLK_ENABLE();
3333
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
3434

3535
/** Initializes the RCC Oscillators according to the specified parameters
36-
* in the RCC_OscInitTypeDef structure.
37-
*/
36+
* in the RCC_OscInitTypeDef structure.
37+
*/
3838
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
3939
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
4040
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
@@ -44,29 +44,25 @@ WEAK void SystemClock_Config(void)
4444
RCC_OscInitStruct.PLL.PLLN = 432;
4545
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
4646
RCC_OscInitStruct.PLL.PLLQ = 9;
47-
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
48-
{
47+
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
4948
Error_Handler();
5049
}
5150

5251
/** Activate the Over-Drive mode
53-
*/
54-
if (HAL_PWREx_EnableOverDrive() != HAL_OK)
55-
{
52+
*/
53+
if (HAL_PWREx_EnableOverDrive() != HAL_OK) {
5654
Error_Handler();
5755
}
5856

5957
/** Initializes the CPU, AHB and APB buses clocks
60-
*/
61-
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
62-
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
58+
*/
59+
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
6360
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
6461
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
6562
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4;
6663
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2;
6764

68-
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_7) != HAL_OK)
69-
{
65+
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_7) != HAL_OK) {
7066
Error_Handler();
7167
}
7268
}

0 commit comments

Comments
 (0)