Skip to content

Commit 787afbb

Browse files
committed
Initialized all RCC init structs for all STM32H7 BSP variants as empty
1 parent 3c38c7d commit 787afbb

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

hw/bsp/stm32h7/boards/daisyseed/board.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
//--------------------------------------------------------------------+
5858
static inline void board_stm32h7_clock_init(void)
5959
{
60-
RCC_ClkInitTypeDef RCC_ClkInitStruct;
61-
RCC_OscInitTypeDef RCC_OscInitStruct;
62-
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
60+
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
61+
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
62+
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = { 0 };
6363

6464
/*!< Supply configuration update enable */
6565
/* For STM32H750XB, use "HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);" */

hw/bsp/stm32h7/boards/stm32h723nucleo/board.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
//--------------------------------------------------------------------+
6565
static inline void board_stm32h7_clock_init(void)
6666
{
67-
RCC_ClkInitTypeDef RCC_ClkInitStruct;
68-
RCC_OscInitTypeDef RCC_OscInitStruct;
67+
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
68+
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
6969

7070
/* The PWR block is always enabled on the H7 series- there is no clock
7171
enable. For now, use the default VOS3 scale mode (lowest) and limit clock

hw/bsp/stm32h7/boards/stm32h743eval/board.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
//--------------------------------------------------------------------+
6464
static inline void board_stm32h7_clock_init(void)
6565
{
66-
RCC_ClkInitTypeDef RCC_ClkInitStruct;
67-
RCC_OscInitTypeDef RCC_OscInitStruct;
68-
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
66+
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
67+
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
68+
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = { 0 };
6969

7070
/*!< Supply configuration update enable */
7171
HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);

hw/bsp/stm32h7/boards/stm32h743nucleo/board.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
//--------------------------------------------------------------------+
5656
static inline void board_stm32h7_clock_init(void)
5757
{
58-
RCC_ClkInitTypeDef RCC_ClkInitStruct;
59-
RCC_OscInitTypeDef RCC_OscInitStruct;
58+
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
59+
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
6060

6161
/* The PWR block is always enabled on the H7 series- there is no clock
6262
enable. For now, use the default VOS3 scale mode (lowest) and limit clock

hw/bsp/stm32h7/boards/stm32h745disco/board.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
//--------------------------------------------------------------------+
5858
static inline void board_stm32h7_clock_init(void)
5959
{
60-
RCC_ClkInitTypeDef RCC_ClkInitStruct;
61-
RCC_OscInitTypeDef RCC_OscInitStruct;
62-
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
60+
RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 };
61+
RCC_OscInitTypeDef RCC_OscInitStruct = { 0 };
62+
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = { 0 };
6363

6464
/*!< Supply configuration update enable */
6565
/* For STM32H750XB, use "HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);" */

0 commit comments

Comments
 (0)