summaryrefslogtreecommitdiff
path: root/software
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-12-05 01:03:09 +0000
committerChristian Pointner <equinox@mur.at>2013-12-05 01:03:09 +0000
commit46d55ba65f2b8dedb3006b23500182eac64c1602 (patch)
tree1a8d3a505d47a3f73cf1510611a92bae052f6211 /software
parentadded IHU subsystem (only 405 for now) (diff)
ihu serial support for F103
git-svn-id: https://svn.spreadspace.org/mur.sat@857 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software')
-rw-r--r--software/mpu/board-F103/board.h4
-rw-r--r--software/mpu/mcuconf-F103.h2
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