paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [5564] making macros with capitalized UART


From: antoine drouin
Subject: [paparazzi-commits] [5564] making macros with capitalized UART
Date: Sun, 22 Aug 2010 01:46:20 +0000

Revision: 5564
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5564
Author:   poine
Date:     2010-08-22 01:46:20 +0000 (Sun, 22 Aug 2010)
Log Message:
-----------
making macros with capitalized UART

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/uart.h

Modified: paparazzi3/trunk/sw/airborne/uart.h
===================================================================
--- paparazzi3/trunk/sw/airborne/uart.h 2010-08-22 01:45:33 UTC (rev 5563)
+++ paparazzi3/trunk/sw/airborne/uart.h 2010-08-22 01:46:20 UTC (rev 5564)
@@ -48,6 +48,14 @@
 #define Uart0TxRunning uart0_tx_running
 #define Uart0InitParam uart0_init_param
 
+/* I want to trigger USE_UART and generate macros with the makefile same 
variable */
+#define UART0Init           Uart0Init
+#define UART0CheckFreeSpace Uart0CheckFreeSpace
+#define UART0Transmit       Uart0Transmit
+#define UART0SendMessage    Uart0SendMessage
+#define UART0ChAvailable    Uart0ChAvailable
+#define UART0Getch          Uart0Getch
+
 #endif /* USE_UART0 */
 
 #ifdef USE_UART1
@@ -64,6 +72,13 @@
 #define Uart1TxRunning uart1_tx_running
 #define Uart1InitParam uart1_init_param
 
+#define UART1Init           Uart1Init
+#define UART1CheckFreeSpace Uart1CheckFreeSpace
+#define UART1Transmit       Uart1Transmit
+#define UART1SendMessage    Uart1SendMessage
+#define UART1ChAvailable    Uart1ChAvailable
+#define UART1Getch          Uart1Getch
+
 #endif /* USE_UART1 */
 
 #ifdef USE_UART2
@@ -77,6 +92,13 @@
 #define Uart2Transmit(_x) uart2_transmit(_x)
 #define Uart2SendMessage() {}
 
+#define UART2Init           Uart2Init
+#define UART2CheckFreeSpace Uart2CheckFreeSpace
+#define UART2Transmit       Uart2Transmit
+#define UART2SendMessage    Uart2SendMessage
+#define UART2ChAvailable    Uart2ChAvailable
+#define UART2Getch          Uart2Getch
+
 #endif /* USE_UART2 */
 
 #ifdef USE_UART3
@@ -90,6 +112,13 @@
 #define Uart3Transmit(_x)       uart3_transmit(_x)
 #define Uart3SendMessage() {}
 
+#define UART3Init           Uart3Init
+#define UART3CheckFreeSpace Uart3CheckFreeSpace
+#define UART3Transmit       Uart3Transmit
+#define UART3SendMessage    Uart3SendMessage
+#define UART3ChAvailable    Uart3ChAvailable
+#define UART3Getch          Uart3Getch
+
 #endif /* USE_UART3 */
 
 #endif /* UART_H */




reply via email to

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