paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5363] GPIO pins and ports used for uarts placed in


From: Eric
Subject: [paparazzi-commits] [5363] GPIO pins and ports used for uarts placed in header file
Date: Sat, 14 Aug 2010 03:58:39 +0000

Revision: 5363
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5363
Author:   lamestllama
Date:     2010-08-14 03:58:39 +0000 (Sat, 14 Aug 2010)
Log Message:
-----------
GPIO pins and ports used for uarts placed in header file

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/stm32/uart_hw.h

Modified: paparazzi3/trunk/sw/airborne/stm32/uart_hw.h
===================================================================
--- paparazzi3/trunk/sw/airborne/stm32/uart_hw.h        2010-08-14 03:58:29 UTC 
(rev 5362)
+++ paparazzi3/trunk/sw/airborne/stm32/uart_hw.h        2010-08-14 03:58:39 UTC 
(rev 5363)
@@ -36,6 +36,21 @@
 #define B57600   57600
 #define B115200 115200
 
+#define Uart1_TxPin GPIO_Pin_9
+#define Uart1_RxPin GPIO_Pin_10
+#define Uart1_TxPort GPIOA
+#define Uart1_RxPort GPIOA
+#define Uart1_PeriphClockCmd  RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, 
ENABLE)
+#define Uart2_TxPin GPIO_Pin_2
+#define Uart2_RxPin GPIO_Pin_3
+#define Uart2_TxPort GPIOA
+#define Uart2_RxPort GPIOA
+#define Uart2_PeriphClockCmd RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, 
ENABLE)
+#define Uart3_TxPin GPIO_Pin_10
+#define Uart3_RxPin GPIO_Pin_11
+#define Uart3_TxPort GPIOC
+#define Uart3_RxPort GPIOC
+#define Uart3_PeriphClockCmd RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, 
ENABLE)
 
 #ifdef USE_UART1
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]