File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
variants/STM32G0xx/G071G(8-B)UxN_G081GBUxN Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 19
19
* @param None
20
20
* @retval None
21
21
*/
22
- WEAK void SystemClock_Config (void )
23
- {
22
+ WEAK void SystemClock_Config (void ) {
24
23
RCC_OscInitTypeDef RCC_OscInitStruct = {0 };
25
24
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0 };
26
25
@@ -42,21 +41,19 @@ WEAK void SystemClock_Config(void)
42
41
RCC_OscInitStruct .PLL .PLLP = RCC_PLLP_DIV2 ;
43
42
RCC_OscInitStruct .PLL .PLLQ = RCC_PLLQ_DIV2 ;
44
43
RCC_OscInitStruct .PLL .PLLR = RCC_PLLR_DIV2 ;
45
- if (HAL_RCC_OscConfig (& RCC_OscInitStruct ) != HAL_OK )
46
- {
44
+ if (HAL_RCC_OscConfig (& RCC_OscInitStruct ) != HAL_OK ) {
47
45
Error_Handler ();
48
46
}
49
47
50
48
/** Initializes the CPU, AHB and APB buses clocks
51
49
*/
52
- RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
53
- | RCC_CLOCKTYPE_PCLK1 ;
50
+ RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
51
+ | RCC_CLOCKTYPE_PCLK1 ;
54
52
RCC_ClkInitStruct .SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK ;
55
53
RCC_ClkInitStruct .AHBCLKDivider = RCC_SYSCLK_DIV1 ;
56
54
RCC_ClkInitStruct .APB1CLKDivider = RCC_HCLK_DIV1 ;
57
55
58
- if (HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_2 ) != HAL_OK )
59
- {
56
+ if (HAL_RCC_ClockConfig (& RCC_ClkInitStruct , FLASH_LATENCY_2 ) != HAL_OK ) {
60
57
Error_Handler ();
61
58
}
62
59
}
You can’t perform that action at this time.
0 commit comments