From 85d56c363e7e984ab9c5e96786d42de8f8310f20 Mon Sep 17 00:00:00 2001 From: zer0 Date: Sat, 8 May 2010 00:38:07 +0200 Subject: [PATCH] export FIFOs --- modules/comm/uart/uart.h | 6 ++++++ modules/comm/uart/uart_private.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/comm/uart/uart.h b/modules/comm/uart/uart.h index 6e4bd51..06ba9f0 100644 --- a/modules/comm/uart/uart.h +++ b/modules/comm/uart/uart.h @@ -49,6 +49,7 @@ #include #include #include +#include #include @@ -64,6 +65,11 @@ struct uart_config { uint32_t baudrate; /**< speed of uart */ }; +/** The emission fifo of uart */ +extern struct cirbuf g_tx_fifo[UART_HW_NUM]; + +/** The reception fifo of uart */ +extern struct cirbuf g_rx_fifo[UART_HW_NUM]; /** * Initialisation function. This function puts the registers of the diff --git a/modules/comm/uart/uart_private.h b/modules/comm/uart/uart_private.h index f09e2a7..34a9453 100644 --- a/modules/comm/uart/uart_private.h +++ b/modules/comm/uart/uart_private.h @@ -47,12 +47,6 @@ const struct regs uart_regs[UART_HW_NUM]; typedef void (event)(char); typedef void (event_9bits)(int); -/** The emission fifo of uart */ -extern struct cirbuf g_tx_fifo[UART_HW_NUM]; - -/** The reception fifo of uart */ -extern struct cirbuf g_rx_fifo[UART_HW_NUM]; - extern event *rx_event[UART_HW_NUM]; extern event *tx_event[UART_HW_NUM]; -- 2.20.1