summaryrefslogtreecommitdiff
path: root/digital/avr/modules/uart
diff options
context:
space:
mode:
authorNicolas Schodet2010-12-15 00:24:38 +0100
committerNicolas Schodet2010-12-15 00:24:38 +0100
commit948c655985dcbe6f8abcc7da850b91e8caa73080 (patch)
treed0d0f3e268b13a62b9c3659d036a56d63c2a86cf /digital/avr/modules/uart
parent00ef637bd3fec023786ec9156664e454be4aab88 (diff)
digital/avr/common: add preprocessor tools
Diffstat (limited to 'digital/avr/modules/uart')
-rw-r--r--digital/avr/modules/uart/uart_common.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/digital/avr/modules/uart/uart_common.h b/digital/avr/modules/uart/uart_common.h
index 8f5a3af4..4704f59c 100644
--- a/digital/avr/modules/uart/uart_common.h
+++ b/digital/avr/modules/uart/uart_common.h
@@ -24,19 +24,16 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* }}} */
+#include "preproc.h"
/* This symbol should be 0 or 1. */
#ifndef UART_N
# error "uart: UART_N missing"
#endif
-/* Utility macros. */
-#define PASTE4_SUB(a, b, c, d) a ## b ## c ## d
-#define PASTE4(a, b, c, d) PASTE4_SUB (a, b, c, d)
-
/* Port selection macros. */
-#define AC_UART(x) PASTE4(AC_UART, UART_N, _, x)
-#define uart(x) PASTE4(uart, UART_N, _, x)
+#define AC_UART(x) PREPROC_PASTE(AC_UART, UART_N, _, x)
+#define uart(x) PREPROC_PASTE(uart, UART_N, _, x)
/* Define uart symbols. */
#define uart_error uart (error)