From 37a0ce845cd17b666459e74349b3afab16b78942 Mon Sep 17 00:00:00 2001 From: sambas Date: Thu, 25 Mar 2010 10:52:38 +0000 Subject: [PATCH] Solved bad USART port init git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@383 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/PiOS/STM32F10x/pios_usart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flight/PiOS/STM32F10x/pios_usart.c b/flight/PiOS/STM32F10x/pios_usart.c index 038f7983c..5b4622074 100644 --- a/flight/PiOS/STM32F10x/pios_usart.c +++ b/flight/PiOS/STM32F10x/pios_usart.c @@ -121,6 +121,7 @@ void PIOS_USART_Init(void) /* Configure and Init USART Tx as alternate function open-drain */ GPIO_InitStructure.GPIO_Pin = PIOS_USART2_TX_PIN; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_OD; GPIO_Init(PIOS_USART2_GPIO_PORT, &GPIO_InitStructure); /* Configure and Init USART Rx input with internal pull-ups */ @@ -153,6 +154,7 @@ void PIOS_USART_Init(void) /* Configure and Init USART Tx as alternate function open-drain */ GPIO_InitStructure.GPIO_Pin = PIOS_USART3_TX_PIN; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_OD; GPIO_Init(PIOS_USART3_GPIO_PORT, &GPIO_InitStructure); /* Configure and Init USART Rx input with internal pull-ups */