fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Committer:
gwappa
Date:
Mon Jun 18 10:43:45 2018 +0000
Revision:
9:e136394bdb39
Parent:
3:991c6d5ce19d
Child:
11:897ecd5413e0
add WithCue mode in place of Pair

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gwappa 3:991c6d5ce19d 1 #ifndef RIG_H_
gwappa 3:991c6d5ce19d 2 #define RIG_H_
gwappa 3:991c6d5ce19d 3
gwappa 3:991c6d5ce19d 4 #include "mbed.h"
gwappa 3:991c6d5ce19d 5 #include "task.h"
gwappa 3:991c6d5ce19d 6 #include "trial.h"
gwappa 3:991c6d5ce19d 7
gwappa 3:991c6d5ce19d 8 // the task timer
gwappa 3:991c6d5ce19d 9 extern Timer timer;
gwappa 3:991c6d5ce19d 10
gwappa 3:991c6d5ce19d 11 // state time out
gwappa 3:991c6d5ce19d 12 extern Timeout stateTimeout;
gwappa 3:991c6d5ce19d 13
gwappa 3:991c6d5ce19d 14 // reward time out
gwappa 3:991c6d5ce19d 15 extern Timeout rewardTimeout;
gwappa 3:991c6d5ce19d 16
gwappa 9:e136394bdb39 17 // trigger time out for TASK output
gwappa 9:e136394bdb39 18 extern Timeout triggerTimeout;
gwappa 9:e136394bdb39 19
gwappa 3:991c6d5ce19d 20 // input
gwappa 3:991c6d5ce19d 21 extern InterruptIn whiskIn;
gwappa 3:991c6d5ce19d 22 extern InterruptIn lickIn;
gwappa 3:991c6d5ce19d 23
gwappa 3:991c6d5ce19d 24 // output
gwappa 3:991c6d5ce19d 25 extern DigitalOut cueOut;
gwappa 3:991c6d5ce19d 26 extern DigitalOut enableOut;
gwappa 3:991c6d5ce19d 27 extern DigitalOut rewardOut;
gwappa 3:991c6d5ce19d 28
gwappa 9:e136394bdb39 29 extern DigitalOut trialStart;
gwappa 9:e136394bdb39 30 extern DigitalOut trialEnd;
gwappa 9:e136394bdb39 31
gwappa 3:991c6d5ce19d 32 extern Task task;
gwappa 3:991c6d5ce19d 33 extern Trial trial;
gwappa 3:991c6d5ce19d 34
gwappa 3:991c6d5ce19d 35 #endif