aboutsummaryrefslogtreecommitdiff
path: root/target/stm3220g
diff options
context:
space:
mode:
authorTravis Geiselbrecht <geist@foobox.com>2012-10-14 13:26:23 -0700
committerTravis Geiselbrecht <geist@foobox.com>2012-10-14 13:27:53 -0700
commit48326dc028a3a46ab28084dc8620043cfc6944d1 (patch)
tree96cf4903f353e30dd51f64afe00c9110da7bbedb /target/stm3220g
parent9c4a2fff48cb0c21d54f9ad5e11fd6ef44b3f266 (diff)
downloadlk-48326dc028a3a46ab28084dc8620043cfc6944d1.tar.gz
[target][stm3220g] update to newest changes in stm32f2xx platform
Diffstat (limited to 'target/stm3220g')
-rw-r--r--target/stm3220g/init.c7
-rw-r--r--target/stm3220g/rules.mk1
2 files changed, 2 insertions, 6 deletions
diff --git a/target/stm3220g/init.c b/target/stm3220g/init.c
index 2ecc8e02..83175115 100644
--- a/target/stm3220g/init.c
+++ b/target/stm3220g/init.c
@@ -37,11 +37,8 @@
void target_early_init(void)
{
/* configure the usart3 pins */
- gpio_config(GPIO_USART3_TX, GPIO_STM32_AF | GPIO_PULLUP);
- gpio_config(GPIO_USART3_RX, GPIO_STM32_AF | GPIO_PULLUP);
-
- GPIO_PinAFConfig(GPIOC, 10, GPIO_AF_USART3);
- GPIO_PinAFConfig(GPIOC, 11, GPIO_AF_USART3);
+ gpio_config(GPIO_USART3_TX, GPIO_STM32_AF | GPIO_STM32_AFn(GPIO_AF_USART3) | GPIO_PULLUP);
+ gpio_config(GPIO_USART3_RX, GPIO_STM32_AF | GPIO_STM32_AFn(GPIO_AF_USART3) | GPIO_PULLUP);
stm32_debug_early_init();
diff --git a/target/stm3220g/rules.mk b/target/stm3220g/rules.mk
index c50b6b9e..8ccb4de6 100644
--- a/target/stm3220g/rules.mk
+++ b/target/stm3220g/rules.mk
@@ -5,7 +5,6 @@ MODULE := $(LOCAL_DIR)
STM32_CHIP := stm32f207
PLATFORM := stm32f2xx
-MEMSIZE ?= 2097152
DEFINES += \
ENABLE_UART3=1 \