for TwitterMbed

Dependents:   TwitterMbed

Fork of PowerControl by Michael Wei

Committer:
no2chem
Date:
Sat Jan 30 02:23:30 2010 +0000
Revision:
0:9bd5f1bdb845

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
no2chem 0:9bd5f1bdb845 1 #include "mbed.h"
no2chem 0:9bd5f1bdb845 2 #include "PowerControl/PowerControl.h"
no2chem 0:9bd5f1bdb845 3 #include "PowerControl/EthernetPowerControl.h"
no2chem 0:9bd5f1bdb845 4
no2chem 0:9bd5f1bdb845 5 int main() {
no2chem 0:9bd5f1bdb845 6 //turn OSC1 down
no2chem 0:9bd5f1bdb845 7 PHY_PowerDown();
no2chem 0:9bd5f1bdb845 8 wait(5);
no2chem 0:9bd5f1bdb845 9 LPC_GPIO1->FIODIR = 0x8000000;
no2chem 0:9bd5f1bdb845 10 LPC_GPIO1->FIOCLR = 0x8000000;
no2chem 0:9bd5f1bdb845 11 wait(5);
no2chem 0:9bd5f1bdb845 12 LPC_GPIO1->FIOSET = 0x8000000;
no2chem 0:9bd5f1bdb845 13 wait(5);
no2chem 0:9bd5f1bdb845 14 PHY_PowerUp();
no2chem 0:9bd5f1bdb845 15 }