Alisa Allaire
/
4180L1_P1WD
j
Revision 1:f37bf2328d79, committed 2018-01-18
- 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 |
--- 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){