goodwatch/firmware/uart.h
2018-09-23 13:57:49 -04:00

22 lines
358 B
C

/*! \file uart.h
\brief UART Driver for the GoodWatch
*/
//! Set to 1 if the UART is active.
extern int uartactive;
//! UART buffer length.
#define UARTBUFLEN 256
//! UART receive buffer.
extern uint8_t uart_buffer[];
//! Initializes the UART if the host is listening.
void uart_init();
//! Transmit a byte to the UART.
void uart_tx(uint8_t byte);