root / toolbox / serial.h @ 975af07c
History | View | Annotate | Download (232 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 | e1d61b43 | Tom Mullins | uint8_t serial_read_blocking(); |
12 | void serial_write(uint8_t *data, int length); |
||
13 | 20e5429c | Tom Mullins | |
14 | #endif |