Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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
