File tree 11 files changed +46
-48
lines changed
11 files changed +46
-48
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ WEAK void SystemClock_Config(void)
33
33
/** Initializes the RCC Oscillators according to the specified parameters
34
34
* in the RCC_OscInitTypeDef structure.
35
35
*/
36
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
37
- | RCC_OSCILLATORTYPE_CSI ;
38
- RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
39
- RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
36
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
37
+ | RCC_OSCILLATORTYPE_LSI ;
40
38
RCC_OscInitStruct .CSIState = RCC_CSI_ON ;
41
39
RCC_OscInitStruct .CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT ;
40
+ RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
41
+ RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
42
42
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
43
43
RCC_OscInitStruct .PLL .PLLSource = RCC_PLL1_SOURCE_CSI ;
44
44
RCC_OscInitStruct .PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ WEAK void SystemClock_Config(void)
33
33
/** Initializes the RCC Oscillators according to the specified parameters
34
34
* in the RCC_OscInitTypeDef structure.
35
35
*/
36
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
37
- | RCC_OSCILLATORTYPE_CSI ;
38
- RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
39
- RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
36
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
37
+ | RCC_OSCILLATORTYPE_LSI ;
40
38
RCC_OscInitStruct .CSIState = RCC_CSI_ON ;
41
39
RCC_OscInitStruct .CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT ;
40
+ RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
41
+ RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
42
42
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
43
43
RCC_OscInitStruct .PLL .PLLSource = RCC_PLL1_SOURCE_CSI ;
44
44
RCC_OscInitStruct .PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ WEAK void SystemClock_Config(void)
33
33
/** Initializes the RCC Oscillators according to the specified parameters
34
34
* in the RCC_OscInitTypeDef structure.
35
35
*/
36
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
37
- | RCC_OSCILLATORTYPE_CSI ;
38
- RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
39
- RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
36
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
37
+ | RCC_OSCILLATORTYPE_LSI ;
40
38
RCC_OscInitStruct .CSIState = RCC_CSI_ON ;
41
39
RCC_OscInitStruct .CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT ;
40
+ RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
41
+ RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
42
42
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
43
43
RCC_OscInitStruct .PLL .PLLSource = RCC_PLL1_SOURCE_CSI ;
44
44
RCC_OscInitStruct .PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -115,21 +115,15 @@ WEAK void SystemClock_Config(void)
115
115
116
116
while (!__HAL_PWR_GET_FLAG (PWR_FLAG_VOSRDY)) {}
117
117
118
- /* * Configure LSE Drive Capability
119
- * Warning : Only applied when the LSE is disabled.
120
- */
121
- HAL_PWR_EnableBkUpAccess ();
122
- __HAL_RCC_LSEDRIVE_CONFIG (RCC_LSEDRIVE_LOW);
123
-
124
118
/* * Initializes the RCC Oscillators according to the specified parameters
125
119
* in the RCC_OscInitTypeDef structure.
126
120
*/
127
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSE
128
- | RCC_OSCILLATORTYPE_CSI;
129
- RCC_OscInitStruct.LSEState = RCC_LSE_ON;
130
- RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
121
+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
122
+ | RCC_OSCILLATORTYPE_LSI;
131
123
RCC_OscInitStruct.CSIState = RCC_CSI_ON;
132
124
RCC_OscInitStruct.CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT;
125
+ RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
126
+ RCC_OscInitStruct.LSIState = RCC_LSI_ON;
133
127
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
134
128
RCC_OscInitStruct.PLL .PLLSource = RCC_PLL1_SOURCE_CSI;
135
129
RCC_OscInitStruct.PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ WEAK void SystemClock_Config(void)
33
33
/** Initializes the RCC Oscillators according to the specified parameters
34
34
* in the RCC_OscInitTypeDef structure.
35
35
*/
36
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
37
- | RCC_OSCILLATORTYPE_CSI ;
38
- RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
39
- RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
36
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
37
+ | RCC_OSCILLATORTYPE_LSI ;
40
38
RCC_OscInitStruct .CSIState = RCC_CSI_ON ;
41
39
RCC_OscInitStruct .CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT ;
40
+ RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
41
+ RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
42
42
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
43
43
RCC_OscInitStruct .PLL .PLLSource = RCC_PLL1_SOURCE_CSI ;
44
44
RCC_OscInitStruct .PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -112,12 +112,12 @@ WEAK void SystemClock_Config(void)
112
112
/* * Initializes the RCC Oscillators according to the specified parameters
113
113
* in the RCC_OscInitTypeDef structure.
114
114
*/
115
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
116
- | RCC_OSCILLATORTYPE_CSI;
117
- RCC_OscInitStruct.LSIState = RCC_LSI_ON;
118
- RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
115
+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
116
+ | RCC_OSCILLATORTYPE_LSI;
119
117
RCC_OscInitStruct.CSIState = RCC_CSI_ON;
120
118
RCC_OscInitStruct.CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT;
119
+ RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
120
+ RCC_OscInitStruct.LSIState = RCC_LSI_ON;
121
121
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
122
122
RCC_OscInitStruct.PLL .PLLSource = RCC_PLL1_SOURCE_CSI;
123
123
RCC_OscInitStruct.PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ WEAK void SystemClock_Config(void)
33
33
/** Initializes the RCC Oscillators according to the specified parameters
34
34
* in the RCC_OscInitTypeDef structure.
35
35
*/
36
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
37
- | RCC_OSCILLATORTYPE_CSI ;
38
- RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
39
- RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
36
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
37
+ | RCC_OSCILLATORTYPE_LSI ;
40
38
RCC_OscInitStruct .CSIState = RCC_CSI_ON ;
41
39
RCC_OscInitStruct .CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT ;
40
+ RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
41
+ RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
42
42
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
43
43
RCC_OscInitStruct .PLL .PLLSource = RCC_PLL1_SOURCE_CSI ;
44
44
RCC_OscInitStruct .PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -208,15 +208,15 @@ WEAK void SystemClock_Config(void)
208
208
/* * Initializes the RCC Oscillators according to the specified parameters
209
209
* in the RCC_OscInitTypeDef structure.
210
210
*/
211
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_HSI
212
- | RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_CSI;
211
+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
212
+ | RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_HSI;
213
+ RCC_OscInitStruct.CSIState = RCC_CSI_ON;
214
+ RCC_OscInitStruct.CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT;
215
+ RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
213
216
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS_DIGITAL;
214
217
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
215
218
RCC_OscInitStruct.HSIDiv = RCC_HSI_DIV1;
216
219
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
217
- RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
218
- RCC_OscInitStruct.CSIState = RCC_CSI_ON;
219
- RCC_OscInitStruct.CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT;
220
220
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
221
221
RCC_OscInitStruct.PLL .PLLSource = RCC_PLL1_SOURCE_HSE;
222
222
RCC_OscInitStruct.PLL .PLLM = 5 ;
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ WEAK void SystemClock_Config(void)
34
34
/** Initializes the RCC Oscillators according to the specified parameters
35
35
* in the RCC_OscInitTypeDef structure.
36
36
*/
37
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
38
- | RCC_OSCILLATORTYPE_CSI ;
39
- RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
40
- RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
37
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
38
+ | RCC_OSCILLATORTYPE_LSI ;
41
39
RCC_OscInitStruct .CSIState = RCC_CSI_ON ;
42
40
RCC_OscInitStruct .CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT ;
41
+ RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
42
+ RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
43
43
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
44
44
RCC_OscInitStruct .PLL .PLLSource = RCC_PLL1_SOURCE_CSI ;
45
45
RCC_OscInitStruct .PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ WEAK void SystemClock_Config(void)
34
34
/** Initializes the RCC Oscillators according to the specified parameters
35
35
* in the RCC_OscInitTypeDef structure.
36
36
*/
37
- RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
38
- | RCC_OSCILLATORTYPE_CSI ;
39
- RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
40
- RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
37
+ RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
38
+ | RCC_OSCILLATORTYPE_LSI ;
41
39
RCC_OscInitStruct .CSIState = RCC_CSI_ON ;
42
40
RCC_OscInitStruct .CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT ;
41
+ RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ;
42
+ RCC_OscInitStruct .LSIState = RCC_LSI_ON ;
43
43
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
44
44
RCC_OscInitStruct .PLL .PLLSource = RCC_PLL1_SOURCE_CSI ;
45
45
RCC_OscInitStruct .PLL .PLLM = 1 ;
Original file line number Diff line number Diff line change @@ -188,7 +188,11 @@ WEAK void SystemClock_Config(void)
188
188
/* * Initializes the RCC Oscillators according to the specified parameters
189
189
* in the RCC_OscInitTypeDef structure.
190
190
*/
191
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_LSE;
191
+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_CSI | RCC_OSCILLATORTYPE_HSI48
192
+ | RCC_OSCILLATORTYPE_HSE | RCC_OSCILLATORTYPE_LSE;
193
+ RCC_OscInitStruct.CSIState = RCC_CSI_ON;
194
+ RCC_OscInitStruct.CSICalibrationValue = RCC_CSICALIBRATION_DEFAULT;
195
+ RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
192
196
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
193
197
RCC_OscInitStruct.LSEState = RCC_LSE_ON;
194
198
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
You can’t perform that action at this time.
0 commit comments