Dependencies:   BufferedSerial analogAverager voltageRegulator netStatReg analogMinMax CounterMinMax

Revision:
3:ac1f2af8bd0f
Child:
12:4bb088c27838
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nettime.cpp	Mon Sep 16 14:17:45 2019 +0000
@@ -0,0 +1,24 @@
+#include "nettime.h"
+
+static volatile unsigned int timerval = 0;
+static volatile bool tickflag = false;
+
+int getTime(void)
+{
+    return timerval;
+}
+
+bool getTick(void)
+{
+    return tickflag;
+}
+
+void setTick(bool tickval)
+{
+    tickflag = tickval;
+}
+
+void incTime(void)
+{
+    timerval=timerval+1;
+}
\ No newline at end of file