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.h
- Committer:
- gwappa
- Date:
- 2018-06-25
- Revision:
- 12:06ea96546af1
- Parent:
- 11:897ecd5413e0
- Child:
- 20:4c06d3041337
File content as of revision 12:06ea96546af1:
#ifndef RIG_H_
#define RIG_H_
#include "mbed.h"
#include "pulse.h"
#include "task.h"
#include "trial.h"
const uint16_t TRIGGER_DUR_MS = 2;
// the task timer
extern Timer timer;
// state time out
extern Timeout stateTimeout;
// trigger time out for TASK output
extern Timeout triggerTimeout;
// ticker for audio cue
extern Ticker buzzerTicker;
// input
extern InterruptIn whiskIn;
extern InterruptIn lickIn;
// output
extern DigitalOut audioOut;
extern Pulse visualOut;
extern Pulse rewardOut;
extern Pulse trialStart;
extern Pulse trialEnd;
extern Task task;
extern Trial trial;
#endif