2012-02-03 06:08:17 -05:00
|
|
|
#ifndef __UART_H
|
|
|
|
#define __UART_H
|
|
|
|
|
2013-03-25 09:38:58 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-02-03 06:08:17 -05:00
|
|
|
void uart_init(void);
|
|
|
|
void uart_isr(void);
|
|
|
|
void uart_sync(void);
|
|
|
|
|
|
|
|
void uart_write(char c);
|
|
|
|
char uart_read(void);
|
|
|
|
int uart_read_nonblock(void);
|
|
|
|
|
2013-03-25 09:38:58 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-02-03 06:08:17 -05:00
|
|
|
#endif
|