@@ -71,16 +71,16 @@ WEAK void SystemClock_Config(void)
71
71
72
72
/* Configure LSE Drive Capability */
73
73
HAL_PWR_EnableBkUpAccess ();
74
- __HAL_RCC_LSEDRIVE_CONFIG (RCC_LSEDRIVE_LOW );
74
+ // __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_MEDIUMHIGH );
75
75
76
76
/*
77
77
* Initializes the RCC Oscillators according to the specified parameters
78
78
* in the RCC_OscInitTypeDef structure.
79
79
*/
80
- RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_HSE
81
- | RCC_OSCILLATORTYPE_LSE ;
80
+ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48 | RCC_OSCILLATORTYPE_LSI
81
+ | RCC_OSCILLATORTYPE_HSE ;
82
82
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
83
- RCC_OscInitStruct.LSEState = RCC_LSE_ON ;
83
+ RCC_OscInitStruct.LSIState = RCC_LSI_ON ;
84
84
RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
85
85
RCC_OscInitStruct.PLL .PLLState = RCC_PLL_ON;
86
86
RCC_OscInitStruct.PLL .PLLSource = RCC_PLLSOURCE_HSE;
@@ -108,14 +108,14 @@ WEAK void SystemClock_Config(void)
108
108
HAL_RCC_EnableCSS ();
109
109
110
110
/* Enables the Clock Security System */
111
- HAL_RCCEx_EnableLSECSS ();
111
+ // HAL_RCCEx_EnableLSECSS();
112
112
113
113
/* Initializes the peripherals clock */
114
114
PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_USB | RCC_PERIPHCLK_SDMMC1
115
115
| RCC_PERIPHCLK_RTC;
116
116
PeriphClkInit.UsbClockSelection = RCC_USBCLKSOURCE_HSI48;
117
117
PeriphClkInit.Sdmmc1ClockSelection = RCC_SDMMC1CLKSOURCE_HSI48;
118
- PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSE ;
118
+ PeriphClkInit.RTCClockSelection = RCC_RTCCLKSOURCE_LSI ;
119
119
if (HAL_RCCEx_PeriphCLKConfig (&PeriphClkInit) != HAL_OK) {
120
120
Error_Handler ();
121
121
}
0 commit comments