*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
Revision 2:9bcf87e81217, committed 2015-03-25
- Comitter:
- MACRUM
- Date:
- Wed Mar 25 10:34:40 2015 +0000
- Parent:
- 1:d0fa2aeb02a4
- Commit message:
- Avoid compile error when target is not LPC1768
Changed in this revision
EthernetPowerControl.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r d0fa2aeb02a4 -r 9bcf87e81217 EthernetPowerControl.cpp --- 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