File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 72
72
#define HAL_IWDG_MODULE_ENABLED
73
73
/* #define HAL_LTDC_MODULE_ENABLED */
74
74
/* #define HAL_DSI_MODULE_ENABLED */
75
- #define HAL_PWR_MODULE_ENABLED
75
+ /* #define HAL_PWR_MODULE_ENABLED */
76
76
/* #define HAL_QSPI_MODULE_ENABLED */
77
77
#define HAL_RCC_MODULE_ENABLED
78
78
/* #define HAL_RNG_MODULE_ENABLED */
Original file line number Diff line number Diff line change @@ -146,13 +146,16 @@ WEAK void SystemClock_Config(void)
146
146
RCC_ClkInitTypeDef RCC_ClkInitStruct;
147
147
RCC_OscInitTypeDef RCC_OscInitStruct;
148
148
149
+
149
150
/* Enable Power Control clock */
150
151
__HAL_RCC_PWR_CLK_ENABLE ();
151
152
153
+ #ifdef HAL_PWR_MODULE_ENABLED
152
154
/* The voltage scaling allows optimizing the power consumption when the device is
153
155
clocked below the maximum system frequency, to update the voltage scaling value
154
156
regarding system frequency refer to product datasheet. */
155
157
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1);
158
+ #endif
156
159
157
160
/* Enable HSE Oscillator and activate PLL with HSE as source */
158
161
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
You can’t perform that action at this time.
0 commit comments