Example software for a Cyclic Executive
Dependencies: MCP23017 SDFileSystem WattBob_TextLCD mbed
Tasks.cpp
- Committer:
- sk398
- Date:
- 2016-02-15
- Revision:
- 2:22ebabd78084
- Parent:
- 1:221d677fe0d3
- Child:
- 3:c611b9bb5770
File content as of revision 2:22ebabd78084:
/* ############################################################################### # # # # # # # # # # # # # # # ############################################################################### */ #include "mbed.h" #include "Tasks.h" /* ==================================== Task 1 ==================================== */ Task1::Task1(PinName squareWaveInPin) { Timer Task1Timer; _squareWaveIn = new DigitalIn(squareWaveInPin); } int Task1::MeasureFreq() { } /* ==================================== Task 2 ==================================== */ Task2::Task2(PinName digitalInCheckPin) { _digitialInCheck = new DigitalOut(digitalInCheckPin); } /* ==================================== Task 3 ==================================== */ Task3::Task3(PinName WatchdogPin) { _Watchdog = new DigitalOut(WatchdogPin); } void Task3::OutputWatchdogPulse() { _Watchdog -> write(HIGH); wait_ms(WATCHDOG_PULSE_WIDTH); _Watchdog -> write(LOW); } /* ==================================== Task 4 ==================================== */