Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: rig.h
- 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;