goodwatch/firmware/uart.h

21 lines
356 B
C
Raw Normal View History

2017-12-08 23:40:53 +00:00
/*! \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 64
//! UART receive buffer.
extern uint8_t uart_buffer[];
2017-12-08 23:40:53 +00:00
//! Initializes the UART if the host is listening.
void uart_init();
//! Transmit a byte to the UART.
void uart_tx(uint8_t byte);