Keisuke Sehara / Mbed 2 deprecated STM32_Whisking

Dependencies:   mbed

Revision:
26:b4421d1ee57a
Parent:
20:4c06d3041337
Child:
27:b31ea8d74f9e
--- a/rig.h	Wed Jul 04 13:26:58 2018 +0000
+++ b/rig.h	Thu Jul 05 20:15:37 2018 +0000
@@ -4,27 +4,20 @@
 #include "mbed.h"
 
 #include "pulse.h"
+#include "intr.h"
 
 #include "task.h"
 #include "trial.h"
 
-const uint16_t TRIGGER_DUR_MS = 2;
-
-// the task timer
-extern Timer        timer;
+const uint16_t TRIGGER_DUR_MS = 2; // duration of trialStart/trialEnd pulses, in milliseconds
 
 // state time out
 extern Timeout      stateTimeout;
 
-// trigger time out for TASK output
-extern Timeout      triggerTimeout;
-
-// ticker for audio cue
-extern Ticker       buzzerTicker;
-
 // input
-extern InterruptIn  whiskIn;
-extern InterruptIn  lickIn;
+extern InterruptHandler  gateIn;
+extern InterruptHandler  whiskIn;
+extern InterruptHandler  lickIn;
 
 // output
 extern Pulse        audioOut;