From 2be995989149f46e0e6f050053cfa968d684eabf Mon Sep 17 00:00:00 2001 From: "Aubr.Cool" Date: Thu, 23 Apr 2015 16:11:38 +0800 Subject: correct stm32f10x pin64 define error --- bsp/stm32f10x/drivers/gpio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bsp') diff --git a/bsp/stm32f10x/drivers/gpio.c b/bsp/stm32f10x/drivers/gpio.c index 747b55b4dc..6e46835417 100644 --- a/bsp/stm32f10x/drivers/gpio.c +++ b/bsp/stm32f10x/drivers/gpio.c @@ -35,6 +35,7 @@ struct pin_index static const struct pin_index pins[] = { #if (STM32F10X_PIN_NUMBERS == 64) + __STM32_PIN_DEFAULT, __STM32_PIN_DEFAULT, __STM32_PIN(2, APB2, C, 13), __STM32_PIN(3, APB2, C, 14), -- cgit v1.3.1 From 3563c195fb95f5e5d1d2e8291293827a35f3d387 Mon Sep 17 00:00:00 2001 From: aozima Date: Mon, 27 Apr 2015 11:54:22 +0800 Subject: update stm32f2/f4: fixed PLL_M define. --- .../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F2xx/system_stm32f2xx.c | 2 +- .../Libraries/CMSIS/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bsp') diff --git a/bsp/stm32f20x/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F2xx/system_stm32f2xx.c b/bsp/stm32f20x/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F2xx/system_stm32f2xx.c index da0e189c88..63938af735 100644 --- a/bsp/stm32f20x/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F2xx/system_stm32f2xx.c +++ b/bsp/stm32f20x/Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F2xx/system_stm32f2xx.c @@ -142,7 +142,7 @@ /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */ -#define PLL_M 25 +#define PLL_M (HSE_VALUE / 1000000) #define PLL_N 240 /* SYSCLK = PLL_VCO / PLL_P */ diff --git a/bsp/stm32f40x/Libraries/CMSIS/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c b/bsp/stm32f40x/Libraries/CMSIS/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c index 98e8e04dbe..18fa12b803 100644 --- a/bsp/stm32f40x/Libraries/CMSIS/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c +++ b/bsp/stm32f40x/Libraries/CMSIS/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c @@ -146,7 +146,7 @@ /************************* PLL Parameters *************************************/ /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */ -#define PLL_M 25 +#define PLL_M (HSE_VALUE / 1000000) #define PLL_N 336 /* SYSCLK = PLL_VCO / PLL_P */ -- cgit v1.3.1