![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
See graph
Dependencies: MCP23017 SDFileSystem WattBob_TextLCD mbed
Fork of Embedded_Software_Assignment_2 by
Diff: Tasks.cpp
- Revision:
- 1:221d677fe0d3
- Parent:
- 0:5989ac10c4d3
- Child:
- 2:22ebabd78084
diff -r 5989ac10c4d3 -r 221d677fe0d3 Tasks.cpp --- a/Tasks.cpp Mon Feb 15 21:56:19 2016 +0000 +++ b/Tasks.cpp Mon Feb 15 22:17:47 2016 +0000 @@ -0,0 +1,40 @@ +#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 ==================================== */ \ No newline at end of file