paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [5543] capitalized UartXXX stuff in order to use the


From: antoine drouin
Subject: [paparazzi-commits] [5543] capitalized UartXXX stuff in order to use the same string for enabling flag ( UASE_UART1) and generated macros UART1Transmit vs Uart1Transmit
Date: Sat, 21 Aug 2010 20:51:50 +0000

Revision: 5543
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5543
Author:   poine
Date:     2010-08-21 20:51:50 +0000 (Sat, 21 Aug 2010)
Log Message:
-----------
capitalized UartXXX stuff in order to use the same string for enabling flag ( 
UASE_UART1) and generated macros UART1Transmit vs Uart1Transmit

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

Modified: paparazzi3/trunk/sw/airborne/stm32/uart_hw.c
===================================================================
--- paparazzi3/trunk/sw/airborne/stm32/uart_hw.c        2010-08-21 20:50:12 UTC 
(rev 5542)
+++ paparazzi3/trunk/sw/airborne/stm32/uart_hw.c        2010-08-21 20:51:50 UTC 
(rev 5543)
@@ -54,14 +54,14 @@
   /* Init GPIOS */
   GPIO_InitTypeDef gpio;
   /* GPIOA: GPIO_Pin_9 USART1 Tx push-pull */
-  gpio.GPIO_Pin   = Uart1_TxPin;
+  gpio.GPIO_Pin   = UART1_TxPin;
   gpio.GPIO_Mode  = GPIO_Mode_AF_PP;
   gpio.GPIO_Speed = GPIO_Speed_50MHz;
-  GPIO_Init(Uart1_TxPort, &gpio);
+  GPIO_Init(UART1_TxPort, &gpio);
   /* GPIOA: GPIO_Pin_10 USART1 Rx pin as floating input */
-  gpio.GPIO_Pin   = Uart1_RxPin;
+  gpio.GPIO_Pin   = UART1_RxPin;
   gpio.GPIO_Mode  = GPIO_Mode_IN_FLOATING;
-  GPIO_Init(Uart1_RxPort, &gpio);
+  GPIO_Init(UART1_RxPort, &gpio);
 
   /* Configure USART1 */
   USART_InitTypeDef usart;
@@ -177,14 +177,14 @@
   /* Init GPIOS */
   GPIO_InitTypeDef gpio;
   /* GPIOA: GPIO_Pin_2 USART2 Tx push-pull */
-  gpio.GPIO_Pin   = Uart2_TxPin; // ;
+  gpio.GPIO_Pin   = UART2_TxPin; // ;
   gpio.GPIO_Mode  = GPIO_Mode_AF_PP;
   gpio.GPIO_Speed = GPIO_Speed_50MHz;
-  GPIO_Init(Uart2_TxPort, &gpio);
+  GPIO_Init(UART2_TxPort, &gpio);
   /* GPIOA: GPIO_Pin_3 USART2 Rx pin as floating input */
-  gpio.GPIO_Pin   = Uart2_RxPin; // ;
+  gpio.GPIO_Pin   = UART2_RxPin; // ;
   gpio.GPIO_Mode  = GPIO_Mode_IN_FLOATING;
-  GPIO_Init(Uart2_RxPort, &gpio);
+  GPIO_Init(UART2_RxPort, &gpio);
 
   /* Configure USART2 */
   USART_InitTypeDef usart;
@@ -305,14 +305,14 @@
   GPIO_PinRemapConfig(GPIO_PartialRemap_USART3, ENABLE);
   GPIO_InitTypeDef gpio;
   /* GPIOC: GPIO_Pin_10 USART3 Tx push-pull */
-  gpio.GPIO_Pin   = Uart3_TxPin; 
+  gpio.GPIO_Pin   = UART3_TxPin; 
   gpio.GPIO_Mode  = GPIO_Mode_AF_PP;
   gpio.GPIO_Speed = GPIO_Speed_50MHz;
-  GPIO_Init(Uart3_TxPort, &gpio);
+  GPIO_Init(UART3_TxPort, &gpio);
   /* GPIOC: GPIO_Pin_11 USART3 Rx pin as floating input */
-  gpio.GPIO_Pin   = Uart3_RxPin; 
+  gpio.GPIO_Pin   = UART3_RxPin; 
   gpio.GPIO_Mode  = GPIO_Mode_IN_FLOATING;
-  GPIO_Init(Uart3_RxPort, &gpio);
+  GPIO_Init(UART3_RxPort, &gpio);
 
   /* Configure USART3 */
   USART_InitTypeDef usart;

Modified: paparazzi3/trunk/sw/airborne/stm32/uart_hw.h
===================================================================
--- paparazzi3/trunk/sw/airborne/stm32/uart_hw.h        2010-08-21 20:50:12 UTC 
(rev 5542)
+++ paparazzi3/trunk/sw/airborne/stm32/uart_hw.h        2010-08-21 20:51:50 UTC 
(rev 5543)
@@ -38,11 +38,11 @@
 
 #ifdef USE_UART1
 
-#define Uart1_TxPin GPIO_Pin_9
-#define Uart1_RxPin GPIO_Pin_10
-#define Uart1_TxPort GPIOA
-#define Uart1_RxPort GPIOA
-#define Uart1_Periph RCC_APB2Periph_GPIOA
+#define UART1_TxPin GPIO_Pin_9
+#define UART1_RxPin GPIO_Pin_10
+#define UART1_TxPort GPIOA
+#define UART1_RxPort GPIOA
+#define UART1_Periph RCC_APB2Periph_GPIOA
 
 #define UART1_RX_BUFFER_SIZE 128
 #define UART1_TX_BUFFER_SIZE 128
@@ -68,11 +68,11 @@
 
 #ifdef USE_UART2
 
-#define Uart2_TxPin GPIO_Pin_2
-#define Uart2_RxPin GPIO_Pin_3
-#define Uart2_TxPort GPIOA
-#define Uart2_RxPort GPIOA
-#define Uart2_Periph RCC_APB2Periph_GPIOA
+#define UART2_TxPin GPIO_Pin_2
+#define UART2_RxPin GPIO_Pin_3
+#define UART2_TxPort GPIOA
+#define UART2_RxPort GPIOA
+#define UART2_Periph RCC_APB2Periph_GPIOA
 
 #define UART2_RX_BUFFER_SIZE 128
 #define UART2_TX_BUFFER_SIZE 128
@@ -98,11 +98,11 @@
 
 #ifdef USE_UART3
 
-#define Uart3_TxPin GPIO_Pin_10
-#define Uart3_RxPin GPIO_Pin_11
-#define Uart3_TxPort GPIOC
-#define Uart3_RxPort GPIOC
-#define Uart3_Periph RCC_APB2Periph_GPIOC
+#define UART3_TxPin  GPIO_Pin_10
+#define UART3_RxPin  GPIO_Pin_11
+#define UART3_TxPort GPIOC
+#define UART3_RxPort GPIOC
+#define UART3_Periph RCC_APB2Periph_GPIOC
 
 #define UART3_RX_BUFFER_SIZE 128
 #define UART3_TX_BUFFER_SIZE 128




reply via email to

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