Lots of changes! Takes us to rom S
[uccvend-snackrom.git] / ROM2 / sci.h
index 4b3a6d1..0db4b64 100644 (file)
@@ -4,10 +4,12 @@
 #include "vend.h"
 
 #define BUFFER_LEN 12
+#define CRLF "\r\n"
 
 void sci_init();
 void msg_clr();
-void send_packet();
+void send_buffer(bool crlf);
+void send_string(char* s);
 void send_ack();
 void send_nack();
 #define wait_for_tx_free() do { } while(0)
@@ -15,5 +17,6 @@ void send_nack();
 extern char sci_tx_buf[BUFFER_LEN];
 extern volatile char sci_rx_buf[BUFFER_LEN];
 extern volatile u8 sci_have_packet;
+extern volatile bool sci_echo;
 
 #endif /* _SCI_H_ */

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