mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 23:58:31 +00:00
22 lines
358 B
C
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);
|
|
|
|
|