Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HC_SR04_Ultrasonic_Library Servo mbed
Fork of FIP_REV1 by
stm32f4xx_cube_hal.c
00001 /* Includes ------------------------------------------------------------------*/ 00002 #include "cube_hal.h" 00003 00004 /** 00005 * System Clock Configuration 00006 */ 00007 void SystemClock_Config(void) 00008 { 00009 RCC_ClkInitTypeDef RCC_ClkInitStruct; 00010 RCC_OscInitTypeDef RCC_OscInitStruct; 00011 00012 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI; 00013 RCC_OscInitStruct.HSIState = RCC_HSI_ON; 00014 RCC_OscInitStruct.HSICalibrationValue = 6; 00015 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; 00016 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; 00017 RCC_OscInitStruct.PLL.PLLM = 16; 00018 RCC_OscInitStruct.PLL.PLLN = 256; 00019 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV8; 00020 RCC_OscInitStruct.PLL.PLLQ = 4; 00021 HAL_RCC_OscConfig(&RCC_OscInitStruct); 00022 00023 RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_SYSCLK; 00024 RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; 00025 HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1); 00026 }
Generated on Tue Jul 12 2022 21:42:00 by
