Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
rig.h@26:b4421d1ee57a, 2018-07-05 (annotated)
- Committer:
- gwappa
- Date:
- Thu Jul 05 20:15:37 2018 +0000
- Revision:
- 26:b4421d1ee57a
- Parent:
- 20:4c06d3041337
- Child:
- 27:b31ea8d74f9e
transform event feature into the InterruptHandler class; organize files a little bit
Who changed what in which revision?
User | Revision | Line number | New 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 | // state time out |
gwappa | 3:991c6d5ce19d | 15 | extern Timeout stateTimeout; |
gwappa | 3:991c6d5ce19d | 16 | |
gwappa | 3:991c6d5ce19d | 17 | // input |
gwappa | 26:b4421d1ee57a | 18 | extern InterruptHandler gateIn; |
gwappa | 26:b4421d1ee57a | 19 | extern InterruptHandler whiskIn; |
gwappa | 26:b4421d1ee57a | 20 | extern InterruptHandler lickIn; |
gwappa | 3:991c6d5ce19d | 21 | |
gwappa | 3:991c6d5ce19d | 22 | // output |
gwappa | 20:4c06d3041337 | 23 | extern Pulse audioOut; |
gwappa | 12:06ea96546af1 | 24 | extern Pulse visualOut; |
gwappa | 12:06ea96546af1 | 25 | extern Pulse rewardOut; |
gwappa | 3:991c6d5ce19d | 26 | |
gwappa | 12:06ea96546af1 | 27 | extern Pulse trialStart; |
gwappa | 12:06ea96546af1 | 28 | extern Pulse trialEnd; |
gwappa | 9:e136394bdb39 | 29 | |
gwappa | 3:991c6d5ce19d | 30 | extern Task task; |
gwappa | 3:991c6d5ce19d | 31 | extern Trial trial; |
gwappa | 3:991c6d5ce19d | 32 | |
gwappa | 3:991c6d5ce19d | 33 | #endif |