Example software for a Cyclic Executive
Dependencies: MCP23017 SDFileSystem WattBob_TextLCD mbed
Diff: Tasks.h
- Revision:
- 1:221d677fe0d3
- Parent:
- 0:5989ac10c4d3
- Child:
- 2:22ebabd78084
--- a/Tasks.h Mon Feb 15 21:56:19 2016 +0000 +++ b/Tasks.h Mon Feb 15 22:17:47 2016 +0000 @@ -0,0 +1,54 @@ +#ifndef _TASKS_H_ +#define _TASKS_H_ + +#define HIGH 1 +#define LOW 0 + +#define WATCHDOG_PULSE_WIDTH 15 + + +/* ==================================== Task 1 ==================================== */ +class Task1 +{ +public: + Task1(PinName squareWaveInPin); + int MeasureFreq(); + +private: + + DigitalIn *_squareWaveIn; + +}; + + +/* ==================================== Task 2 ==================================== */ +class Task2 +{ +public: + Task2(PinName digitalInCheckPin); + +private: + + DigitalIn *_digitalInCheck; + +}; + + +/* ==================================== Task 3 ==================================== */ +class Task3 +{ +public: + Task3(PinName WatchdogPin); + void OutputWatchdogPulse(); + +private: + DigitalOut *_Watchdog; +}; + + +/* ==================================== Task 4 ==================================== */ + + +/* ==================================== Task 5 ==================================== */ + +#endif