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