#ifndef UART_H_ #define UART_H_ #include "includes.h" /** * Initializes the UART to 9600 baud. */ void uart_init(); /** * Sends a single byte of data to the UART. */ void uart_write(uint8_t byte); /** * Returns true if the UART has data to receive. */ bool uart_has_data(); /** * Reads one byte of data from the UART. * Returns 0 if there is no data. */ uint8_t uart_read(); /** * Returns the amount of room in the UART send buffer. */ uint8_t uart_send_space_left(); /** * Tells the wireless interface to transmit. */ void uart_finish(); #endif /*UART_H_*/