export FIFOs
authorzer0 <zer0@carbon.local>
Fri, 7 May 2010 22:38:07 +0000 (00:38 +0200)
committerzer0 <zer0@carbon.local>
Fri, 7 May 2010 22:38:07 +0000 (00:38 +0200)
modules/comm/uart/uart.h
modules/comm/uart/uart_private.h

index 6e4bd51..06ba9f0 100644 (file)
@@ -49,6 +49,7 @@
 #include <stdio.h>\r
 #include <aversive.h>\r
 #include <uart_config.h>\r
+#include <uart_defs.h>\r
 \r
 #include <cirbuf.h>\r
 \r
@@ -64,6 +65,11 @@ struct uart_config {
       uint32_t baudrate;             /**< speed of uart */\r
 };\r
 \r
+/** The emission fifo of uart */\r
+extern struct cirbuf g_tx_fifo[UART_HW_NUM];\r
+\r
+/** The reception fifo of uart  */\r
+extern struct cirbuf g_rx_fifo[UART_HW_NUM];\r
 \r
 /** \r
  * Initialisation function. This function puts the registers of the\r
index f09e2a7..34a9453 100644 (file)
@@ -47,12 +47,6 @@ const struct regs uart_regs[UART_HW_NUM];
 typedef void (event)(char);\r
 typedef void (event_9bits)(int);\r
 \r
-/** The emission fifo of uart */\r
-extern struct cirbuf g_tx_fifo[UART_HW_NUM];\r
-\r
-/** The reception fifo of uart  */\r
-extern struct cirbuf g_rx_fifo[UART_HW_NUM];\r
-\r
 extern event *rx_event[UART_HW_NUM];\r
 extern event *tx_event[UART_HW_NUM];\r
 \r