Lines Matching refs:RCC_OscInitStruct
355 RCC_OscInitTypeDef RCC_OscInitStruct = { 0 }; in SystemClockConfig() local
363 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_MSI | RCC_OSCILLATORTYPE_LSE; in SystemClockConfig()
364 RCC_OscInitStruct.MSIState = RCC_MSI_ON; in SystemClockConfig()
365 RCC_OscInitStruct.LSEState = RCC_LSE_ON; in SystemClockConfig()
366 RCC_OscInitStruct.MSIClockRange = RCC_MSIRANGE_6; in SystemClockConfig()
367 RCC_OscInitStruct.MSICalibrationValue = RCC_MSICALIBRATION_DEFAULT; in SystemClockConfig()
368 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; in SystemClockConfig()
369 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_MSI; in SystemClockConfig()
370 RCC_OscInitStruct.PLL.PLLM = 1; in SystemClockConfig()
371 RCC_OscInitStruct.PLL.PLLN = 40; in SystemClockConfig()
372 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV7; in SystemClockConfig()
373 RCC_OscInitStruct.PLL.PLLQ = RCC_PLLQ_DIV4; in SystemClockConfig()
374 RCC_OscInitStruct.PLL.PLLR = RCC_PLLR_DIV2; in SystemClockConfig()
375 if( HAL_RCC_OscConfig( &RCC_OscInitStruct ) != HAL_OK ) in SystemClockConfig()
482 RCC_OscInitTypeDef RCC_OscInitStruct = { 0 }; in SystemClockReConfig() local
496 HAL_RCC_GetOscConfig( &RCC_OscInitStruct ); in SystemClockReConfig()
499 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_NONE; in SystemClockReConfig()
500 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; in SystemClockReConfig()
501 if( HAL_RCC_OscConfig( &RCC_OscInitStruct ) != HAL_OK ) in SystemClockReConfig()