File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 57
57
//--------------------------------------------------------------------+
58
58
static inline void board_stm32h7_clock_init (void )
59
59
{
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 } ;
63
63
64
64
/*!< Supply configuration update enable */
65
65
/* For STM32H750XB, use "HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);" */
Original file line number Diff line number Diff line change 64
64
//--------------------------------------------------------------------+
65
65
static inline void board_stm32h7_clock_init (void )
66
66
{
67
- RCC_ClkInitTypeDef RCC_ClkInitStruct ;
68
- RCC_OscInitTypeDef RCC_OscInitStruct ;
67
+ RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 } ;
68
+ RCC_OscInitTypeDef RCC_OscInitStruct = { 0 } ;
69
69
70
70
/* The PWR block is always enabled on the H7 series- there is no clock
71
71
enable. For now, use the default VOS3 scale mode (lowest) and limit clock
@@ -111,7 +111,7 @@ static inline void board_stm32h7_clock_init(void)
111
111
separate. However, the main system PLL (PLL1) doesn't have a direct
112
112
connection to the USB peripheral clock to generate 48 MHz, so we do this
113
113
dance. This will connect PLL1's Q output to the USB peripheral clock. */
114
- RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInitStruct ;
114
+ RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInitStruct = { 0 } ;
115
115
116
116
RCC_PeriphCLKInitStruct .PeriphClockSelection = RCC_PERIPHCLK_USB ;
117
117
RCC_PeriphCLKInitStruct .UsbClockSelection = RCC_USBCLKSOURCE_PLL ;
Original file line number Diff line number Diff line change 63
63
//--------------------------------------------------------------------+
64
64
static inline void board_stm32h7_clock_init (void )
65
65
{
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 } ;
69
69
70
70
/*!< Supply configuration update enable */
71
71
HAL_PWREx_ConfigSupply (PWR_LDO_SUPPLY );
Original file line number Diff line number Diff line change 55
55
//--------------------------------------------------------------------+
56
56
static inline void board_stm32h7_clock_init (void )
57
57
{
58
- RCC_ClkInitTypeDef RCC_ClkInitStruct ;
59
- RCC_OscInitTypeDef RCC_OscInitStruct ;
58
+ RCC_ClkInitTypeDef RCC_ClkInitStruct = { 0 } ;
59
+ RCC_OscInitTypeDef RCC_OscInitStruct = { 0 } ;
60
60
61
61
/* The PWR block is always enabled on the H7 series- there is no clock
62
62
enable. For now, use the default VOS3 scale mode (lowest) and limit clock
@@ -102,7 +102,7 @@ static inline void board_stm32h7_clock_init(void)
102
102
separate. However, the main system PLL (PLL1) doesn't have a direct
103
103
connection to the USB peripheral clock to generate 48 MHz, so we do this
104
104
dance. This will connect PLL1's Q output to the USB peripheral clock. */
105
- RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInitStruct ;
105
+ RCC_PeriphCLKInitTypeDef RCC_PeriphCLKInitStruct = { 0 } ;
106
106
107
107
RCC_PeriphCLKInitStruct .PeriphClockSelection = RCC_PERIPHCLK_USB ;
108
108
RCC_PeriphCLKInitStruct .UsbClockSelection = RCC_USBCLKSOURCE_PLL ;
Original file line number Diff line number Diff line change 57
57
//--------------------------------------------------------------------+
58
58
static inline void board_stm32h7_clock_init (void )
59
59
{
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 } ;
63
63
64
64
/*!< Supply configuration update enable */
65
65
/* For STM32H750XB, use "HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);" */
You can’t perform that action at this time.
0 commit comments