GPS Receiver with Ethernet PHY disabled to reduce interference noise
Dependencies: mbed PowerControl
Diff: main.cpp
- Revision:
- 0:4bc5ac4535b6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Jun 20 10:19:41 2012 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "EthernetPowerControl.h" + +Serial gps(p9, p10); + +int main() { + printf("GPS Receiver (Ethernet disabled)\n"); + PHY_PowerDown(); // disable Ethernet connection + gps.baud(9600); + + while (true) { + if (gps.readable()) + putchar(gps.getc()); + } +} \ No newline at end of file