File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -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 @@ -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 ;
You can’t perform that action at this time.
0 commit comments