Lots of changes! Takes us to rom S
[uccvend-snackrom.git] / ROM2 / sci.h
1 #ifndef _SCI_H_
2 #define _SCI_H_
3
4 #include "vend.h"
5
6 #define BUFFER_LEN 12
7 #define CRLF "\r\n"
8
9 void sci_init();
10 void msg_clr();
11 void send_buffer(bool crlf);
12 void send_string(char* s);
13 void send_ack();
14 void send_nack();
15 #define wait_for_tx_free() do { } while(0)
16
17 extern char sci_tx_buf[BUFFER_LEN];
18 extern volatile char sci_rx_buf[BUFFER_LEN];
19 extern volatile u8 sci_have_packet;
20 extern volatile bool sci_echo;
21
22 #endif /* _SCI_H_ */

UCC git Repository :: git.ucc.asn.au