j

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
aallaire3
Date:
Thu Jan 18 20:10:21 2018 +0000
Parent:
0:947209d21c35
Commit message:
j

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 947209d21c35 -r f37bf2328d79 main.cpp
--- a/main.cpp	Thu Jan 18 20:08:29 2018 +0000
+++ b/main.cpp	Thu Jan 18 20:10:21 2018 +0000
@@ -3,7 +3,6 @@
 DigitalOut redLed(p21); 
 DigitalIn pb(p8); // Pushbutton for redLed
 DigitalOut led1(LED1);
-DigitalOut led2(LED2);
 DigitalOut led3(LED3);
 
 void kick() {
@@ -29,18 +28,16 @@
     // Delay for initial pullup to take effect
     wait(.001);
 
-    // Indicate watchdog timer reset or pushbutton reset
+    // Indicate watchdog timer reset 
     if((LPC_WDT->WDMOD >> 2) & 1) {
         led1 = 1;
-    } else {
-        led2 = 1;
-    }
+    } 
     
     kick(5); // 5 second timeout
     while(1) {
         redLed = !pb;
         led3 = 1;
-        // Simulate a fault lockup with infinite loop after 10 iterations
+        // Simulate a fault lockup with infinite loop after a bunch of iterations
         if (count == 1000000) {
             while(1){