]> git.droids-corp.org - aversive.git/blobdiff - modules/comm/uart/uart.h
export FIFOs
[aversive.git] / modules / comm / uart / uart.h
index 6e4bd51f7237d10355c7ade62e5aefb14cc5ab90..06ba9f0709b4260207943f87b7251326e93c7cd1 100644 (file)
@@ -49,6 +49,7 @@
 #include <stdio.h>\r
 #include <aversive.h>\r
 #include <uart_config.h>\r
 #include <stdio.h>\r
 #include <aversive.h>\r
 #include <uart_config.h>\r
+#include <uart_defs.h>\r
 \r
 #include <cirbuf.h>\r
 \r
 \r
 #include <cirbuf.h>\r
 \r
@@ -64,6 +65,11 @@ struct uart_config {
       uint32_t baudrate;             /**< speed of uart */\r
 };\r
 \r
       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
 \r
 /** \r
  * Initialisation function. This function puts the registers of the\r