Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
rig.cpp@8:973dcd190672, 2018-05-31 (annotated)
- Committer:
- gwappa
- Date:
- Thu May 31 15:25:37 2018 +0000
- Revision:
- 8:973dcd190672
- Parent:
- 4:fcf597f82632
- Child:
- 9:e136394bdb39
current working
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| gwappa | 3:991c6d5ce19d | 1 | #include "rig.h" |
| gwappa | 3:991c6d5ce19d | 2 | |
| gwappa | 3:991c6d5ce19d | 3 | // the task timer |
| gwappa | 3:991c6d5ce19d | 4 | Timer timer; |
| gwappa | 3:991c6d5ce19d | 5 | |
| gwappa | 3:991c6d5ce19d | 6 | // state time out |
| gwappa | 3:991c6d5ce19d | 7 | Timeout stateTimeout; |
| gwappa | 3:991c6d5ce19d | 8 | |
| gwappa | 3:991c6d5ce19d | 9 | // reward time out |
| gwappa | 3:991c6d5ce19d | 10 | Timeout rewardTimeout; |
| gwappa | 3:991c6d5ce19d | 11 | |
| gwappa | 3:991c6d5ce19d | 12 | // input |
| gwappa | 8:973dcd190672 | 13 | InterruptIn whiskIn(PC_0); // (Arduino#A5) or USER_BUTTON |
| gwappa | 8:973dcd190672 | 14 | InterruptIn lickIn(PC_1); // (Arduino#A4) or USER_BUTTON |
| gwappa | 3:991c6d5ce19d | 15 | |
| gwappa | 3:991c6d5ce19d | 16 | // output |
| gwappa | 8:973dcd190672 | 17 | DigitalOut taskOut(PB_0); // (Arduino#A3) or LED1(Arduino#13/PA_5) |
| gwappa | 8:973dcd190672 | 18 | DigitalOut cueOut(PA_4); // (Arduino#A2) or LED1 |
| gwappa | 8:973dcd190672 | 19 | DigitalOut rewardOut(PA_1); // (Arduino#A1) |
| gwappa | 8:973dcd190672 | 20 | DigitalOut enableOut(PA_0); // (Arduino#A0) |
| gwappa | 3:991c6d5ce19d | 21 | |
| gwappa | 3:991c6d5ce19d | 22 | Task task(Pair); |
| gwappa | 3:991c6d5ce19d | 23 | Trial trial; |