IoT Example
Dependencies: C12832 LM75B MMA7660 MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
Diff: C027.h
- Revision:
- 7:2fb7a98b559c
- Parent:
- 5:fe907e2e0d6c
--- a/C027.h Wed Sep 24 21:47:40 2014 +0000 +++ b/C027.h Thu Sep 25 18:22:51 2014 +0000 @@ -12,6 +12,7 @@ * * Contributors: * Ian Craggs - initial implementation + * Sam Grove - added mehtod to check the status of the Ethernet cable *******************************************************************************/ #if !defined(K64F_H) @@ -29,4 +30,11 @@ #define DEFAULT_TYPE_NAME "iotsample-mbed-c027" +#include "lpc_phy.h" +// need a wrapper since K64F and LPC1768 wont have the same name for mii read methods +static uint32_t linkStatus(void) +{ + return (lpc_mii_read_data() & 1); +} + #endif \ No newline at end of file