Skip to content

Commit c530f6f

Browse files
committed
[EEXTR F030 V1] Fix minor warning and typos
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent ceb89b3 commit c530f6f

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

variants/EEXTR_F030_V1/stm32f0xx_hal_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
* @brief Internal Low Speed oscillator (LSI) value.
134134
*/
135135
#if !defined (LSI_VALUE)
136-
#define LSI_VALUE 40000U
136+
#define LSI_VALUE 40000U
137137
#endif /* LSI_VALUE */ /*!< Value of the Internal Low Speed oscillator in Hz
138138
The real value may vary depending on the variations
139139
in voltage and temperature. */
@@ -159,7 +159,7 @@
159159
/**
160160
* @brief This is the HAL system configuration section
161161
*/
162-
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
162+
#define VDD_VALUE 3300U /*!< Value of VDD in mv */
163163
#define TICK_INT_PRIORITY ((uint32_t)(1U<<__NVIC_PRIO_BITS) - 1U) /*!< tick interrupt priority (lowest by default) */
164164
/* Warning: Must be set to higher priority for HAL_Delay() */
165165
/* and HAL_GetTick() usage under interrupt context */

variants/EEXTR_F030_V1/variant.cpp

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,11 @@ extern "C" {
104104
*/
105105
WEAK void SystemClock_Config(void)
106106
{
107-
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
108-
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
109-
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
107+
RCC_OscInitTypeDef RCC_OscInitStruct = {};
108+
RCC_ClkInitTypeDef RCC_ClkInitStruct = {};
109+
RCC_PeriphCLKInitTypeDef PeriphClkInit = {};
110110

111-
/**Initializes the CPU, AHB and APB busses clocks
112-
*/
111+
/* Initializes the CPU, AHB and APB busses clocks */
113112
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI14|RCC_OSCILLATORTYPE_HSE;
114113
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
115114
RCC_OscInitStruct.HSI14State = RCC_HSI14_ON;
@@ -118,27 +117,23 @@ WEAK void SystemClock_Config(void)
118117
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
119118
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL3;
120119
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;
121-
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
122-
{
120+
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
123121
Error_Handler();
124122
}
125-
/**Initializes the CPU, AHB and APB busses clocks
126-
*/
123+
/* Initializes the CPU, AHB and APB busses clocks */
127124
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
128125
|RCC_CLOCKTYPE_PCLK1;
129126
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
130127
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
131128
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
132-
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK)
133-
{
129+
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK) {
134130
Error_Handler();
135131
}
136132

137133
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USART1|RCC_PERIPHCLK_I2C1;
138134
PeriphClkInit.Usart1ClockSelection = RCC_USART1CLKSOURCE_PCLK1;
139135
PeriphClkInit.I2c1ClockSelection = RCC_I2C1CLKSOURCE_SYSCLK;
140-
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
141-
{
136+
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) {
142137
Error_Handler();
143138
}
144139

0 commit comments

Comments
 (0)