Karpova Lab fork of stateScript

Dependencies:   SMARTWAV mbed

Fork of stateScript_v2 by Mattias Karlsson

Revision:
1:3a050d26d4f6
Parent:
0:8dbd6bd9167f
diff -r 8dbd6bd9167f -r 3a050d26d4f6 mbedInterface/mbedInterface.cpp
--- a/mbedInterface/mbedInterface.cpp	Tue May 19 15:45:42 2015 +0000
+++ b/mbedInterface/mbedInterface.cpp	Wed Jun 03 22:54:25 2015 +0000
@@ -178,6 +178,14 @@
     //--------------------------------------------------------------
 }
 
+void MBEDSystem::pauseInterrupts() {
+    __disable_irq();
+}
+
+void MBEDSystem::resumeInterrupts() {
+    __enable_irq();
+}
+
 void MBEDSystem::mainLoopToDo() {
     #ifdef MBED_RF
     //Karpova version--------------------------
@@ -252,6 +260,7 @@
 void MBEDSystem::incrementClock() {
 
     if (clockSlave) {
+        //The clock is incremented at 1/30th the rate of the input pulses
         externalIncrementCounter = (externalIncrementCounter+1) % externalIncrementMod;
         if (externalIncrementCounter==0) {
             timeKeeper++;