File tree Expand file tree Collapse file tree 32 files changed +32
-32
lines changed
TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device
TARGET_MTB_MTS_DRAGONFLY/device
TARGET_MTS_DRAGONFLY_F411RE/device
TARGET_MTS_MDOT_F411RE/device
TARGET_STM32F401xC/TARGET_DISCO_F401VC
TARGET_STM32F401xE/TARGET_NUCLEO_F401RE
TARGET_STM32F410xB/TARGET_NUCLEO_F410RB
TARGET_MTB_MXCHIP_EMW3166
TARGET_STM32F439xI/TARGET_NUCLEO_F439ZI
TARGET_STM32F469xI/TARGET_DISCO_F469NI
TARGET_STM32F756xG/TARGET_NUCLEO_F756ZG
TARGET_STM32F767xI/TARGET_NUCLEO_F767ZI
TARGET_STM32F769xI/TARGET_DISCO_F769NI
TARGET_NUCLEO_L073RZ/device
TARGET_STM32L0x2xZ/TARGET_MTB_MURATA_ABZ Expand file tree Collapse file tree 32 files changed +32
-32
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ uint8_t SetSysClock_PLL_HSI(void)
195
195
196
196
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
197
197
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
198
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
198
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
199
199
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
200
200
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
201
201
RCC_OscInitStruct .PLL .PLLM = 16 ;
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ uint8_t SetSysClock_PLL_HSI(void)
207
207
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
208
208
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
209
209
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
210
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
210
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
211
211
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
212
212
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
213
213
//RCC_OscInitStruct.PLL.PLLM = 16; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ uint8_t SetSysClock_PLL_HSI(void)
207
207
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
208
208
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
209
209
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
210
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
210
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
211
211
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
212
212
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
213
213
//RCC_OscInitStruct.PLL.PLLM = 16; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ uint8_t SetSysClock_PLL_HSI(void)
211
211
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
212
212
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
213
213
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
214
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
214
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
215
215
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
216
216
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
217
217
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ uint8_t SetSysClock_PLL_HSI(void)
203
203
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
204
204
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
205
205
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
206
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
206
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
207
207
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
208
208
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
209
209
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ uint8_t SetSysClock_PLL_HSI(void)
210
210
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
211
211
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
212
212
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
213
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
213
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
214
214
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
215
215
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
216
216
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ uint8_t SetSysClock_PLL_HSI(void)
204
204
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
205
205
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
206
206
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
207
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
207
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
208
208
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
209
209
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
210
210
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ uint8_t SetSysClock_PLL_HSI(void)
209
209
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
210
210
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
211
211
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
212
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
212
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
213
213
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
214
214
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
215
215
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ uint8_t SetSysClock_PLL_HSI(void)
209
209
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
210
210
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
211
211
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
212
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
212
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
213
213
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
214
214
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
215
215
RCC_OscInitStruct .PLL .PLLM = 8 ;
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ uint8_t SetSysClock_PLL_HSI(void)
213
213
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
214
214
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
215
215
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
216
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
216
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
217
217
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
218
218
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
219
219
//RCC_OscInitStruct.PLL.PLLM = 16; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ uint8_t SetSysClock_PLL_HSI(void)
212
212
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
213
213
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
214
214
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
215
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
215
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
216
216
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
217
217
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
218
218
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ uint8_t SetSysClock_PLL_HSI(void)
212
212
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
213
213
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
214
214
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
215
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
215
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
216
216
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
217
217
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
218
218
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ uint8_t SetSysClock_PLL_HSI(void)
230
230
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
231
231
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
232
232
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
233
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
233
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
234
234
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
235
235
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
236
236
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ uint8_t SetSysClock_PLL_HSI(void)
229
229
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
230
230
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
231
231
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
232
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
232
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
233
233
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
234
234
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
235
235
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ uint8_t SetSysClock_PLL_HSI(void)
230
230
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
231
231
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
232
232
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
233
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
233
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
234
234
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
235
235
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
236
236
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ uint8_t SetSysClock_PLL_HSI(void)
228
228
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
229
229
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
230
230
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
231
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
231
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
232
232
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
233
233
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
234
234
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ uint8_t SetSysClock_PLL_HSI(void)
192
192
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
193
193
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
194
194
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
195
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
195
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
196
196
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
197
197
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
198
198
RCC_OscInitStruct .PLL .PLLM = 8 ;
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ uint8_t SetSysClock_PLL_HSI(void)
192
192
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
193
193
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
194
194
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
195
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
195
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
196
196
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
197
197
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
198
198
RCC_OscInitStruct .PLL .PLLM = 8 ;
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ uint8_t SetSysClock_PLL_HSI(void)
207
207
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
208
208
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
209
209
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
210
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
210
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
211
211
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
212
212
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
213
213
RCC_OscInitStruct .PLL .PLLM = 8 ;
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ uint8_t SetSysClock_PLL_HSI(void)
224
224
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
225
225
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
226
226
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
227
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
227
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
228
228
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
229
229
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
230
230
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ uint8_t SetSysClock_PLL_HSI(void)
222
222
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
223
223
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
224
224
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
225
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
225
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
226
226
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
227
227
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
228
228
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ uint8_t SetSysClock_PLL_HSI(void)
235
235
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
236
236
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
237
237
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
238
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
238
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
239
239
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
240
240
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
241
241
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ uint8_t SetSysClock_PLL_HSI(void)
234
234
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
235
235
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
236
236
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
237
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
237
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
238
238
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
239
239
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
240
240
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ uint8_t SetSysClock_PLL_HSI(void)
211
211
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
212
212
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
213
213
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
214
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
214
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
215
215
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
216
216
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
217
217
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ uint8_t SetSysClock_PLL_HSI(void)
212
212
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
213
213
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
214
214
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
215
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
215
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
216
216
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
217
217
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
218
218
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ uint8_t SetSysClock_PLL_HSI(void)
211
211
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE ;
212
212
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
213
213
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
214
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
214
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
215
215
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
216
216
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
217
217
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ uint8_t SetSysClock_PLL_HSI(void)
213
213
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
214
214
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
215
215
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
216
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
216
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
217
217
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
218
218
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
219
219
RCC_OscInitStruct .PLL .PLLM = 8 ; // VCO input clock = 2 MHz (16 MHz / 8)
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ uint8_t SetSysClock_PLL_HSI(void)
215
215
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI ;
216
216
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
217
217
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
218
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
218
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
219
219
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
220
220
RCC_OscInitStruct .PLL .PLLSource = RCC_PLLSOURCE_HSI ;
221
221
RCC_OscInitStruct .PLL .PLLM = 16 ; // VCO input clock = 1 MHz (16 MHz / 16)
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ uint8_t SetSysClock_PLL_HSI(void)
209
209
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48 ;
210
210
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
211
211
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
212
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
212
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
213
213
RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ; /* For USB and RNG clock */
214
214
// PLLCLK = (16 MHz * 4)/2 = 32 MHz
215
215
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ uint8_t SetSysClock_PLL_HSI(void)
210
210
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48 ;
211
211
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
212
212
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
213
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
213
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
214
214
RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ; /* For USB and RNG clock */
215
215
// PLLCLK = (16 MHz * 4)/2 = 32 MHz
216
216
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ uint8_t SetSysClock_PLL_HSI(void)
210
210
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48 ;
211
211
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
212
212
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
213
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
213
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
214
214
RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ; /* For USB and RNG clock */
215
215
// PLLCLK = (16 MHz * 4)/2 = 32 MHz
216
216
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ uint8_t SetSysClock_PLL_HSI(void)
115
115
RCC_OscInitStruct .OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48 ;
116
116
RCC_OscInitStruct .HSEState = RCC_HSE_OFF ;
117
117
RCC_OscInitStruct .HSIState = RCC_HSI_ON ;
118
- RCC_OscInitStruct .HSICalibrationValue = 16 ;
118
+ RCC_OscInitStruct .HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT ;
119
119
RCC_OscInitStruct .HSI48State = RCC_HSI48_ON ; /* For USB and RNG clock */
120
120
// PLLCLK = (16 MHz * 4)/2 = 32 MHz
121
121
RCC_OscInitStruct .PLL .PLLState = RCC_PLL_ON ;
You can’t perform that action at this time.
0 commit comments