Mike Moore
/
RTOS_HW_04
RTOS homework 4
Revision 26:986b539170fc, committed 2013-09-13
- Comitter:
- gatedClock
- Date:
- Fri Sep 13 04:16:05 2013 +0000
- Parent:
- 25:fe4425b11e3c
- Child:
- 27:c380923f02d8
- Commit message:
- still doesn't recognise phy power down. why?
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Sep 13 04:08:54 2013 +0000 +++ b/main.cpp Fri Sep 13 04:16:05 2013 +0000 @@ -126,8 +126,7 @@ // On reset, indicate a watchdog reset or a pushbutton reset on LED 4 or 3 - if ((LPC_WDT->WDMOD >> 2) & 1) - led0 = 1; else led1 = 1; + if ((LPC_WDT->WDMOD >> 2) & 1) led0 = 1; else led1 = 1; @@ -151,18 +150,23 @@ // LCD ticker. tickerLCD.attach(&lcd_display,LCDSAMPLERATE); - #ifdef NOETHER + // #ifdef NOETHER // Normal mbed power level for this setup is around 690mW // assuming 5V used on Vin pin // If you don't need networking... // Power down Ethernet interface - saves around 175mW // Also need to unplug network cable - just a cable sucks power PHY_PowerDown(); -#endif +//#endif + + wdt.kick(10.0); while(1) // all timer/interrupt driven. { Sleep(); + + + } } /*----------------------------------------------//----------------------------*/