Steven Kay / Mbed 2 deprecated Embedded_Software_Assignment_2

Dependencies:   MCP23017 SDFileSystem WattBob_TextLCD mbed

Files at this revision

API Documentation at this revision

Comitter:
sk398
Date:
Mon Feb 15 22:30:54 2016 +0000
Parent:
1:221d677fe0d3
Child:
3:c611b9bb5770
Commit message:
All functional prototypes declared in header file.; Need to update class file to include constructor.

Changed in this revision

Tasks.cpp Show annotated file Show diff for this revision Revisions of this file
Tasks.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Tasks.cpp	Mon Feb 15 22:17:47 2016 +0000
+++ b/Tasks.cpp	Mon Feb 15 22:30:54 2016 +0000
@@ -1,3 +1,21 @@
+/* ###############################################################################
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+############################################################################### */
+
 #include "mbed.h"
 #include "Tasks.h"
 
--- a/Tasks.h	Mon Feb 15 22:17:47 2016 +0000
+++ b/Tasks.h	Mon Feb 15 22:30:54 2016 +0000
@@ -1,13 +1,47 @@
+/* ###############################################################################
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+############################################################################### */
+
 #ifndef _TASKS_H_
 #define _TASKS_H_
 
+
+// Global definitions
 #define HIGH 1
 #define LOW 0
 
+// Task 1 definitions
 #define WATCHDOG_PULSE_WIDTH 15
 
+// Task 2 definitions
+
+// Task 3 definitions
+
+// Task 4 definitions
+
+// Task 5 definitions
+
+// Task 6 definitions
+
+
+/* ####################### Class definitions and prototypes ####################### */
 
 /* ==================================== Task 1 ==================================== */
+// Measure freuqnecy
 class Task1
 {
 public:
@@ -22,6 +56,7 @@
 
 
 /* ==================================== Task 2 ==================================== */ 
+// Digital Input
 class Task2
 {
 public:
@@ -35,6 +70,7 @@
 
 
 /* ==================================== Task 3 ==================================== */ 
+// Output watchdog pulse
 class Task3
 {
 public:
@@ -46,9 +82,53 @@
 };
 
 
-/* ==================================== Task 4 ==================================== */
-
+/* ==================================== Task 4 ==================================== */ 
+// Read 2 analog inputs 
+class Task4
+{
+public:
+    Task4(PinName digitalInCheckPin);
+        
+private:
+    
+    DigitalIn *_digitalInCheck;
+        
+};
 
 /* ==================================== Task 5 ==================================== */
+// Display outputs to LCD
+class Task5
+{
+public:
+    Task5();
+        
+private:
+    
+        
+};
+
+/* ==================================== Task 6 ==================================== */
+// Logical checks
+class Task6
+{
+public:
+    Task5();
+        
+private:
+    
+        
+};
+
+/* ==================================== Task 7 ==================================== */
+// Save data to SD Card
+class Task7
+{
+public:
+    Task7();
+        
+private:
+    
+        
+};
 
 #endif
--- a/main.cpp	Mon Feb 15 22:17:47 2016 +0000
+++ b/main.cpp	Mon Feb 15 22:30:54 2016 +0000
@@ -1,3 +1,21 @@
+/* ###############################################################################
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+#
+############################################################################### */
+
 #include "mbed.h"
 #include "Tasks.h"