fast-feedback virtual target task code on STM Nucleo

Dependencies:   mbed

Committer:
gwappa
Date:
Thu Dec 13 07:18:43 2018 +0000
Revision:
32:1416e015016c
Parent:
27:b31ea8d74f9e
change to use the Staged state

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 11:897ecd5413e0 5
gwappa 12:06ea96546af1 6 #include "pulse.h"
gwappa 26:b4421d1ee57a 7 #include "intr.h"
gwappa 11:897ecd5413e0 8
gwappa 3:991c6d5ce19d 9 #include "task.h"
gwappa 3:991c6d5ce19d 10 #include "trial.h"
gwappa 3:991c6d5ce19d 11
gwappa 26:b4421d1ee57a 12 const uint16_t TRIGGER_DUR_MS = 2; // duration of trialStart/trialEnd pulses, in milliseconds
gwappa 3:991c6d5ce19d 13
gwappa 3:991c6d5ce19d 14 // input
gwappa 26:b4421d1ee57a 15 extern InterruptHandler gateIn;
gwappa 26:b4421d1ee57a 16 extern InterruptHandler whiskIn;
gwappa 26:b4421d1ee57a 17 extern InterruptHandler lickIn;
gwappa 3:991c6d5ce19d 18
gwappa 3:991c6d5ce19d 19 // output
gwappa 20:4c06d3041337 20 extern Pulse audioOut;
gwappa 12:06ea96546af1 21 extern Pulse visualOut;
gwappa 12:06ea96546af1 22 extern Pulse rewardOut;
gwappa 3:991c6d5ce19d 23
gwappa 12:06ea96546af1 24 extern Pulse trialStart;
gwappa 12:06ea96546af1 25 extern Pulse trialEnd;
gwappa 9:e136394bdb39 26
gwappa 3:991c6d5ce19d 27 extern Task task;
gwappa 3:991c6d5ce19d 28 extern Trial trial;
gwappa 3:991c6d5ce19d 29
gwappa 3:991c6d5ce19d 30 #endif