Microcontroller firmware that uses a simple, yet powerful scripting language to control the timing of input and output events with high temporal resolution. Written by Mattias Karlsson

Dependencies:   SMARTWAV mbed

Revision:
7:5fe7329751d4
Parent:
6:6a6761a47951
Child:
8:872b843a3053
--- a/hardwareInterface.cpp	Fri Jun 10 21:22:34 2016 +0000
+++ b/hardwareInterface.cpp	Tue Feb 07 18:45:25 2017 +0000
@@ -33,7 +33,7 @@
 
 sSystem::sSystem() {
     for (int i=0;i<32;i++) {
-        ignorePortUpdates[i] = false;
+        ignorePortUpdates[i] = true; //by default, all digital port changes are not automatically reported.
     }
 }
 
@@ -65,6 +65,10 @@
 
 }
 
+void sSystem::reset() {
+
+}
+
 void sSystem::resumeInterrupts() {
 
 }
@@ -80,6 +84,16 @@
 uint32_t sSystem::getDigitalInputChangeFlags() {
 
 }
+//-----------------------------------------------------
+sAnalogOut::sAnalogOut() {
+
+}
+
+//------------------------------------------------------
+sAnalogIn::sAnalogIn() {
+
+}
+
 
 //------------------------------------------------------
 sDigitalOut::sDigitalOut() {
@@ -112,10 +126,10 @@
         //If we are currently checking this input, then we buffer the trigger and deal with it after
         if (newState == 0){
             bufferedDownEvent.timeStamp = timeStamp;
-            //bufferedDownEvent.triggered = true;
+            bufferedDownEvent.triggered = true;
         } else if (newState == 1) {
             bufferedUpEvent.timeStamp = timeStamp;
-            //bufferedUpEvent.triggered = true;
+            bufferedUpEvent.triggered = true;
         }
     }
     /*