root / toolbox / serial.h @ 6ca98a3f
History | View | Annotate | Download (226 Bytes)
1 | 20e5429c | Tom Mullins | #ifndef SERIAL_H
|
---|---|---|---|
2 | #define SERIAL_H
|
||
3 | |||
4 | #define BAUD_RATE 9600 |
||
5 | |||
6 | 6ca98a3f | Tom Mullins | #define RX_BUFFER_SIZE 64 |
7 | 20e5429c | Tom Mullins | |
8 | void serial_init();
|
||
9 | int serial_read();
|
||
10 | 89915eeb | Tom Mullins | void serial_flush();
|
11 | 20e5429c | Tom Mullins | char serial_read_blocking();
|
12 | void serial_write(char* data, int length); |
||
13 | |||
14 | #endif |