*power consumption control(phy , semihost) library written by Michael Wei (some compile errors with mbed lib (20131011) were fixed) *for Mbed LPC1768 *for clock control , see "ClockControl"
Dependents: HTTPClient_WiFi_HelloWorld HTTPClient_WiFi_HelloWorld_src IBMIoTClientWifiExample
Fork of PowerControl by
Diff: EthernetPowerControl.cpp
- Revision:
- 2:9bcf87e81217
- Parent:
- 0:8599d485662f
--- a/EthernetPowerControl.cpp Fri Oct 11 02:53:21 2013 +0000 +++ b/EthernetPowerControl.cpp Wed Mar 25 10:34:40 2015 +0000 @@ -1,3 +1,5 @@ +#if defined(TARGET_LPC1768) + #include "EthernetPowerControl.h" static void write_PHY (unsigned int PhyReg, unsigned short Value) { @@ -135,4 +137,5 @@ regv = read_PHY(PHY_REG_EDCR); write_PHY(PHY_REG_BMCR, regv & ~(1 << PHY_REG_EDCR_ENABLE)); regv = read_PHY(PHY_REG_EDCR); -} \ No newline at end of file +} +#endif