From d17371fe4c7a5237c7e214619f46f7c09d7e3603 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 24 Jun 2010 17:18:30 +0000 Subject: [PATCH] We use same gpio port reg. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3946 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/drv/ser_stm32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bertos/cpu/cortex-m3/drv/ser_stm32.c b/bertos/cpu/cortex-m3/drv/ser_stm32.c index 8a0ae8a3..081a0579 100644 --- a/bertos/cpu/cortex-m3/drv/ser_stm32.c +++ b/bertos/cpu/cortex-m3/drv/ser_stm32.c @@ -149,16 +149,15 @@ void stm32_uartInit(int port) /* Enable clocking on AFIO */ RCC->APB2ENR |= RCC_APB2_AFIO; + RCC->APB2ENR |= gpio_uart[port].sysctl; /* Configure USART pins */ if (port == USART1_PORT) { - RCC->APB2ENR |= gpio_uart[port].sysctl; RCC->APB2ENR |= gpio_uart[port].sysctl1; } else { - RCC->APB1ENR |= gpio_uart[port].sysctl; RCC->APB1ENR |= gpio_uart[port].sysctl1; } -- 2.25.1