minimizing power on C027

Dependencies:   C027_Support mbed

Fork of PowerControl by Michael Wei

Revision:
0:9bd5f1bdb845
Child:
1:21401fc44382
diff -r 000000000000 -r 9bd5f1bdb845 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Jan 30 02:23:30 2010 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "PowerControl/PowerControl.h"
+#include "PowerControl/EthernetPowerControl.h"
+
+int main() {
+    //turn OSC1 down
+     PHY_PowerDown();
+     wait(5);
+     LPC_GPIO1->FIODIR = 0x8000000;
+     LPC_GPIO1->FIOCLR = 0x8000000;
+     wait(5);
+     LPC_GPIO1->FIOSET = 0x8000000;
+     wait(5);
+     PHY_PowerUp();
+}
\ No newline at end of file