mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Revision 9:673ec039aeb3, committed 2015-10-27
- Comitter:
- mbed_official
- Date:
- Tue Oct 27 15:45:10 2015 +0000
- Parent:
- 8:69ce7aaad4c4
- Child:
- 10:ea6854bec050
- Commit message:
- Synchronized with git revision 9caf79b8c933161312681c35584cb692c8ae422b
Full URL: https://github.com/mbedmicro/mbed/commit/9caf79b8c933161312681c35584cb692c8ae422b/
[NUCLEO_F042K6] remove external clock
Changed in this revision
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.c Mon Oct 26 09:00:10 2015 +0000
+++ b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.c Tue Oct 27 15:45:10 2015 +0000
@@ -117,8 +117,8 @@
*/
/* Select the clock sources (other than HSI) to start with (0=OFF, 1=ON) */
-#define USE_PLL_HSE_EXTC (1) /* Use external clock */
-#define USE_PLL_HSE_XTAL (1) /* Use external xtal */
+#define USE_PLL_HSE_EXTC (0) /* Use external clock */
+#define USE_PLL_HSE_XTAL (0) /* Use external xtal */
/**
* @}
@@ -413,13 +413,13 @@
RCC_ClkInitTypeDef RCC_ClkInitStruct;
RCC_OscInitTypeDef RCC_OscInitStruct;
- // Select PLLCLK = 48 MHz ((HSI 8 MHz / 2) * 12)
+ // Select PLLCLK = 48 MHz ((HSI 8 MHz) * 6)
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
- RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI; // HSI div 2
+ RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;
- RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL12;
+ RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL6;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
return 0; // FAIL
}
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_conf.h Mon Oct 26 09:00:10 2015 +0000 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_conf.h Tue Oct 27 15:45:10 2015 +0000 @@ -147,7 +147,7 @@ #endif /* LSE_VALUE */ #if !defined (LSE_STARTUP_TIMEOUT) - #define LSE_STARTUP_TIMEOUT ((uint32_t)5000) /*!< Time out for LSE start up, in ms */ + #define LSE_STARTUP_TIMEOUT ((uint32_t)500) /*!< Time out for LSE start up, in ms */ #endif /* HSE_STARTUP_TIMEOUT */
