aboutsummaryrefslogtreecommitdiffstats
path: root/boards/ST_STM3210C_EVAL/board.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-14 06:43:02 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-05-14 06:43:02 +0000
commit55b7744199ce9771ac761fc708d173bc487145e8 (patch)
tree3b7a61cd3019849544e2bbe25ace9ff658a75e75 /boards/ST_STM3210C_EVAL/board.c
parentfee72530476c5b9eed43fde792df9de367d56800 (diff)
downloadChibiOS-55b7744199ce9771ac761fc708d173bc487145e8.tar.gz
ChibiOS-55b7744199ce9771ac761fc708d173bc487145e8.tar.bz2
ChibiOS-55b7744199ce9771ac761fc708d173bc487145e8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1916 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/ST_STM3210C_EVAL/board.c')
-rw-r--r--boards/ST_STM3210C_EVAL/board.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/boards/ST_STM3210C_EVAL/board.c b/boards/ST_STM3210C_EVAL/board.c
index 77f958101..e9179f9e9 100644
--- a/boards/ST_STM3210C_EVAL/board.c
+++ b/boards/ST_STM3210C_EVAL/board.c
@@ -43,6 +43,12 @@ void hwinit1(void) {
halInit();
/*
+ * Remap USART2 to the PD5/PD6 pins, done after halInit since HAL resets
+ * these.
+ */
+ AFIO->MAPR |= AFIO_MAPR_USART2_REMAP;
+
+ /*
* ChibiOS/RT initialization.
*/
chSysInit();