PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

Revision:
89:f63e4736d875
Child:
93:32cd0af29c2b
diff -r 2fc026430ff2 -r f63e4736d875 header/serialConnection.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/header/serialConnection.h	Mon Apr 09 15:19:36 2018 +0000
@@ -0,0 +1,28 @@
+#pragma once
+#include "mbed.h"
+/*
+
+void Tx_interrupt();
+void Rx_interrupt();
+void send_line();
+void read_line();
+
+// Circular buffers for serial TX and RX data - used by interrupt routines
+const int buffer_size = 1024;
+
+// might need to increase buffer size for high baud rates
+char tx_buffer[buffer_size+1];
+char rx_buffer[buffer_size+1];
+
+// Circular buffer pointers
+// volatile makes read-modify-write atomic 
+volatile int tx_in=0;
+volatile int tx_out=0;
+volatile int rx_in=0;
+volatile int rx_out=0;
+
+// Line buffers for sprintf and sscanf
+char tx_line[80];
+char rx_line[80];
+
+*/
\ No newline at end of file