RTOS homework 4

Dependencies:   C12832_lcd mbed

Revision:
22:5d9bcc7f4440
Parent:
21:eb692e90ae8d
Child:
23:99a13f79cdad
--- a/main.cpp	Fri Sep 13 03:59:57 2013 +0000
+++ b/main.cpp	Fri Sep 13 04:02:55 2013 +0000
@@ -116,6 +116,15 @@
                                                 // LCD ticker.
       tickerLCD.attach(&lcd_display,LCDSAMPLERATE);  
       
+  #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
+      
       while(1)                                  // all timer/interrupt driven.
       {
         wait(10.0);