#ifndef __SW_FIFO_1__ #define __SW_FIFO_1__ #include #define FIFO_1_BUFFER_SIZE 3096 // software buffer size (in bytes) // UART data receive function // - checks if data exists in the receive sw buffer // - if data exists, it returns the oldest element contained in the buffer // - automatically handles "uart_rx_buffer_full_flag" // - if no data exists, it clears the uart_rx_flag uint8_t uart_1_get_byte(void); volatile extern uint8_t uart1_rx_fifo_not_empty_flag; // this flag is automatically set and cleared by the software buffer volatile extern uint8_t uart1_rx_fifo_full_flag; // this flag is automatically set and cleared by the software buffer volatile extern uint8_t uart1_rx_fifo_ovf_flag; // this flag is not automatically cleared by the software buffer volatile extern uint8_t uart1_tx_fifo_full_flag; // this flag is automatically set and cleared by the software buffer volatile extern uint8_t uart1_tx_fifo_ovf_flag; // this flag is not automatically cleared by the software buffer volatile extern uint8_t uart1_tx_fifo_not_empty_flag; // this flag is automatically set and cleared by the software buffer void uart1Interrupt(void); int uart1serialAvailable(); void send_usart1(unsigned char c); #endif