mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			remove magic calibration value for HSI in ST's targets
							parent
							
								
									e0d79ff16a
								
							
						
					
					
						commit
						d1a0ff9964
					
				| 
						 | 
				
			
			@ -195,7 +195,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
 | 
			
		||||
    RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.HSIState = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM = 16;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -207,7 +207,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    //RCC_OscInitStruct.PLL.PLLM          = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -207,7 +207,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    //RCC_OscInitStruct.PLL.PLLM          = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -211,7 +211,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -203,7 +203,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -210,7 +210,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -204,7 +204,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -209,7 +209,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -209,7 +209,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -213,7 +213,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    //RCC_OscInitStruct.PLL.PLLM          = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -212,7 +212,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;             // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -212,7 +212,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;             // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -230,7 +230,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;             // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -229,7 +229,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;             // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -230,7 +230,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;             // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -228,7 +228,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;             // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -192,7 +192,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM = 8;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -192,7 +192,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM = 8;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -207,7 +207,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM = 8;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -224,7 +224,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -222,7 +222,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -235,7 +235,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -234,7 +234,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -211,7 +211,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;            // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -212,7 +212,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;            // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -211,7 +211,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -213,7 +213,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 8;            // VCO input clock = 2 MHz (16 MHz / 8)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -215,7 +215,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLSource       = RCC_PLLSOURCE_HSI;
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLM            = 16;            // VCO input clock = 1 MHz (16 MHz / 16)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -209,7 +209,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.HSI48State          = RCC_HSI48_ON; /* For USB and RNG clock */
 | 
			
		||||
    // PLLCLK = (16 MHz * 4)/2 = 32 MHz
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -210,7 +210,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.HSI48State          = RCC_HSI48_ON; /* For USB and RNG clock */
 | 
			
		||||
    // PLLCLK = (16 MHz * 4)/2 = 32 MHz
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -210,7 +210,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.HSI48State          = RCC_HSI48_ON; /* For USB and RNG clock */
 | 
			
		||||
    // PLLCLK = (16 MHz * 4)/2 = 32 MHz
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -115,7 +115,7 @@ uint8_t SetSysClock_PLL_HSI(void)
 | 
			
		|||
    RCC_OscInitStruct.OscillatorType      = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSI48;
 | 
			
		||||
    RCC_OscInitStruct.HSEState            = RCC_HSE_OFF;
 | 
			
		||||
    RCC_OscInitStruct.HSIState            = RCC_HSI_ON;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = 16;
 | 
			
		||||
    RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
 | 
			
		||||
    RCC_OscInitStruct.HSI48State          = RCC_HSI48_ON; /* For USB and RNG clock */
 | 
			
		||||
    // PLLCLK = (16 MHz * 4)/2 = 32 MHz
 | 
			
		||||
    RCC_OscInitStruct.PLL.PLLState        = RCC_PLL_ON;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue