From: zer0 Date: Fri, 7 May 2010 22:38:07 +0000 (+0200) Subject: export FIFOs X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=commitdiff_plain;h=85d56c363e7e984ab9c5e96786d42de8f8310f20;ds=sidebyside export FIFOs --- 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];