Keisuke Sehara / Mbed 2 deprecated STM32_Whisking

Dependencies:   mbed

rig.cpp

Committer:
gwappa
Date:
2018-05-31
Revision:
8:973dcd190672
Parent:
4:fcf597f82632
Child:
9:e136394bdb39

File content as of revision 8:973dcd190672:

#include "rig.h"

// the task timer
Timer        timer;

// state time out
Timeout      stateTimeout;

// reward time out
Timeout      rewardTimeout;

// input
InterruptIn  whiskIn(PC_0);   // (Arduino#A5) or USER_BUTTON
InterruptIn  lickIn(PC_1);    // (Arduino#A4) or USER_BUTTON

// output
DigitalOut   taskOut(PB_0);   // (Arduino#A3) or LED1(Arduino#13/PA_5)
DigitalOut   cueOut(PA_4);    // (Arduino#A2) or LED1
DigitalOut   rewardOut(PA_1); // (Arduino#A1)
DigitalOut   enableOut(PA_0); // (Arduino#A0)

Task        task(Pair);
Trial       trial;