![](/media/cache/group/160px-Gnome-fs-trash-full.svg.png.50x50_q85.png)
minimizing power on C027
Dependencies: C027_Support mbed
Fork of PowerControl by
main.cpp
- Committer:
- no2chem
- Date:
- 2010-01-30
- Revision:
- 0:9bd5f1bdb845
- Child:
- 1:21401fc44382
File content as of revision 0:9bd5f1bdb845:
#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(); }