mbed library sources
Fork of mbed-src by
Revision 450:c04f5563af1d, committed 2015-01-22
- Comitter:
- mbed_official
- Date:
- Thu Jan 22 13:00:07 2015 +0000
- Parent:
- 449:a1200ab82049
- Child:
- 451:ea2f0f5bda68
- Commit message:
- Synchronized with git revision ebc51cd52cf7a36d8b536cd327d944cc8d258d97
Full URL: https://github.com/mbedmicro/mbed/commit/ebc51cd52cf7a36d8b536cd327d944cc8d258d97/
NUCLEO_F303RE - Update SetSysClock function
Changed in this revision
targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.c Tue Jan 20 14:30:07 2015 +0000 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.c Thu Jan 22 13:00:07 2015 +0000 @@ -375,6 +375,7 @@ } RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; + RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1; RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; // 72 MHz (8 MHz * 9) if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { @@ -414,9 +415,10 @@ 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.PREDIV = RCC_PREDIV_DIV2; RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL16; // 64 MHz (8 MHz/2 * 16) if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {