Lines Matching refs:RCC_OscInitStruct
16 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; in SystemClock_Config() local
26 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI|RCC_OSCILLATORTYPE_LSE in SystemClock_Config()
28 RCC_OscInitStruct.LSEState = RCC_LSE_ON; in SystemClock_Config()
29 RCC_OscInitStruct.LSIState = RCC_LSI_ON; in SystemClock_Config()
30 RCC_OscInitStruct.MSIState = RCC_MSI_ON; in SystemClock_Config()
31 RCC_OscInitStruct.MSICalibrationValue = 0; in SystemClock_Config()
32 RCC_OscInitStruct.MSIClockRange = RCC_MSIRANGE_6; in SystemClock_Config()
33 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; in SystemClock_Config()
34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_MSI; in SystemClock_Config()
35 RCC_OscInitStruct.PLL.PLLM = 1; in SystemClock_Config()
36 RCC_OscInitStruct.PLL.PLLN = 40; in SystemClock_Config()
37 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; in SystemClock_Config()
38 RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2; in SystemClock_Config()
39 RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2; in SystemClock_Config()
40 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) in SystemClock_Config()
90 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; in SystemClock_MSI_ON() local
94 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_MSI; in SystemClock_MSI_ON()
95 RCC_OscInitStruct.MSIState = RCC_MSI_ON; in SystemClock_MSI_ON()
96 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) in SystemClock_MSI_ON()
111 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; in SystemClock_MSI_OFF() local
113 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_MSI; in SystemClock_MSI_OFF()
114 RCC_OscInitStruct.HSIState = RCC_MSI_OFF; in SystemClock_MSI_OFF()
115 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; /* No update on PLL */ in SystemClock_MSI_OFF()
116 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) in SystemClock_MSI_OFF()
124 RCC_OscInitTypeDef RCC_OscInitStruct; in SystemClock_80M() local
128 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; in SystemClock_80M()
129 RCC_OscInitStruct.HSEState = RCC_HSE_ON; in SystemClock_80M()
130 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; in SystemClock_80M()
131 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; in SystemClock_80M()
132 RCC_OscInitStruct.PLL.PLLM = 1; in SystemClock_80M()
133 RCC_OscInitStruct.PLL.PLLN = 20; in SystemClock_80M()
134 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV7; in SystemClock_80M()
135 RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2; in SystemClock_80M()
136 RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2; in SystemClock_80M()
137 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) in SystemClock_80M()
160 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; in SystemClock_Config_fromSTOP() local
164 HAL_RCC_GetOscConfig(&RCC_OscInitStruct); in SystemClock_Config_fromSTOP()
167 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_MSI; in SystemClock_Config_fromSTOP()
168 RCC_OscInitStruct.MSIState = RCC_MSI_ON; in SystemClock_Config_fromSTOP()
169 RCC_OscInitStruct.MSIClockRange = RCC_MSIRANGE_6; in SystemClock_Config_fromSTOP()
170 RCC_OscInitStruct.MSICalibrationValue = RCC_MSICALIBRATION_DEFAULT; in SystemClock_Config_fromSTOP()
171 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; in SystemClock_Config_fromSTOP()
172 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_MSI; in SystemClock_Config_fromSTOP()
173 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) in SystemClock_Config_fromSTOP()
192 RCC_OscInitTypeDef RCC_OscInitStruct; in SystemClock_24M() local
196 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; in SystemClock_24M()
197 RCC_OscInitStruct.HSEState = RCC_HSE_ON; in SystemClock_24M()
198 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; in SystemClock_24M()
199 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; in SystemClock_24M()
200 RCC_OscInitStruct.PLL.PLLM = 1; in SystemClock_24M()
201 RCC_OscInitStruct.PLL.PLLN = 12; in SystemClock_24M()
202 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV7; in SystemClock_24M()
203 RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV2; in SystemClock_24M()
204 RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV4; in SystemClock_24M()
205 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) in SystemClock_24M()
225 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; in SystemClock_2M() local
228 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_MSI; in SystemClock_2M()
229 RCC_OscInitStruct.MSIState = RCC_MSI_ON; in SystemClock_2M()
230 RCC_OscInitStruct.MSIClockRange = RCC_MSIRANGE_5; in SystemClock_2M()
231 RCC_OscInitStruct.MSICalibrationValue = RCC_MSICALIBRATION_DEFAULT; in SystemClock_2M()
232 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; in SystemClock_2M()
233 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) in SystemClock_2M()