From 46d55ba65f2b8dedb3006b23500182eac64c1602 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 5 Dec 2013 01:03:09 +0000 Subject: ihu serial support for F103 git-svn-id: https://svn.spreadspace.org/mur.sat@857 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/mpu/board-F103/board.h | 4 +++- software/mpu/mcuconf-F103.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/software/mpu/board-F103/board.h b/software/mpu/board-F103/board.h index 465a864..135a819 100644 --- a/software/mpu/board-F103/board.h +++ b/software/mpu/board-F103/board.h @@ -71,12 +71,14 @@ /* * Port A setup. * Everything input with pull-up except: + * PA2 - Alternate output (USART2 TX). + * PA3 - Normal input (USART2 RX). * PA8 - Push Pull output (LED). * PA11 - Normal input (USB DM). * PA12 - Normal input (USB DP). * PA13 - Push Pull output (USB DISC). */ -#define VAL_GPIOACRL 0x88888888 /* PA7...PA0 */ +#define VAL_GPIOACRL 0x88884B88 /* PA7...PA0 */ #define VAL_GPIOACRH 0x88344883 /* PA15...PA8 */ #define VAL_GPIOAODR 0xFFFFFFFF diff --git a/software/mpu/mcuconf-F103.h b/software/mpu/mcuconf-F103.h index af13f57..6a03346 100644 --- a/software/mpu/mcuconf-F103.h +++ b/software/mpu/mcuconf-F103.h @@ -151,7 +151,7 @@ * SERIAL driver system settings. */ #define STM32_SERIAL_USE_USART1 FALSE -#define STM32_SERIAL_USE_USART2 FALSE +#define STM32_SERIAL_USE_USART2 TRUE #define STM32_SERIAL_USE_USART3 FALSE #define STM32_SERIAL_USE_UART4 FALSE #define STM32_SERIAL_USE_UART5 FALSE -- cgit v1.2.3