Example software for a Cyclic Executive

Dependencies:   MCP23017 SDFileSystem WattBob_TextLCD mbed

Tasks.h

Committer:
sk398
Date:
2016-02-15
Revision:
1:221d677fe0d3
Parent:
0:5989ac10c4d3
Child:
2:22ebabd78084

File content as of revision 1:221d677fe0d3:

#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