Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
rig.h@20:4c06d3041337, 2018-07-02 (annotated)
- Committer:
- gwappa
- Date:
- Mon Jul 02 09:04:45 2018 +0000
- Revision:
- 20:4c06d3041337
- Parent:
- 12:06ea96546af1
- Child:
- 26:b4421d1ee57a
try extending Pulse to allow tickering output
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 | 11:897ecd5413e0 | 7 | |
gwappa | 3:991c6d5ce19d | 8 | #include "task.h" |
gwappa | 3:991c6d5ce19d | 9 | #include "trial.h" |
gwappa | 3:991c6d5ce19d | 10 | |
gwappa | 11:897ecd5413e0 | 11 | const uint16_t TRIGGER_DUR_MS = 2; |
gwappa | 11:897ecd5413e0 | 12 | |
gwappa | 3:991c6d5ce19d | 13 | // the task timer |
gwappa | 3:991c6d5ce19d | 14 | extern Timer timer; |
gwappa | 3:991c6d5ce19d | 15 | |
gwappa | 3:991c6d5ce19d | 16 | // state time out |
gwappa | 3:991c6d5ce19d | 17 | extern Timeout stateTimeout; |
gwappa | 3:991c6d5ce19d | 18 | |
gwappa | 9:e136394bdb39 | 19 | // trigger time out for TASK output |
gwappa | 9:e136394bdb39 | 20 | extern Timeout triggerTimeout; |
gwappa | 9:e136394bdb39 | 21 | |
gwappa | 11:897ecd5413e0 | 22 | // ticker for audio cue |
gwappa | 11:897ecd5413e0 | 23 | extern Ticker buzzerTicker; |
gwappa | 11:897ecd5413e0 | 24 | |
gwappa | 3:991c6d5ce19d | 25 | // input |
gwappa | 3:991c6d5ce19d | 26 | extern InterruptIn whiskIn; |
gwappa | 3:991c6d5ce19d | 27 | extern InterruptIn lickIn; |
gwappa | 3:991c6d5ce19d | 28 | |
gwappa | 3:991c6d5ce19d | 29 | // output |
gwappa | 20:4c06d3041337 | 30 | extern Pulse audioOut; |
gwappa | 12:06ea96546af1 | 31 | extern Pulse visualOut; |
gwappa | 12:06ea96546af1 | 32 | extern Pulse rewardOut; |
gwappa | 3:991c6d5ce19d | 33 | |
gwappa | 12:06ea96546af1 | 34 | extern Pulse trialStart; |
gwappa | 12:06ea96546af1 | 35 | extern Pulse trialEnd; |
gwappa | 9:e136394bdb39 | 36 | |
gwappa | 3:991c6d5ce19d | 37 | extern Task task; |
gwappa | 3:991c6d5ce19d | 38 | extern Trial trial; |
gwappa | 3:991c6d5ce19d | 39 | |
gwappa | 3:991c6d5ce19d | 40 | #endif |