GPS Receiver with Ethernet PHY disabled to reduce interference noise

Dependencies:   mbed PowerControl

Files at this revision

API Documentation at this revision

Comitter:
yamaguch
Date:
Wed Jun 20 10:19:41 2012 +0000
Commit message:
0.1

Changed in this revision

PowerControl.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 4bc5ac4535b6 PowerControl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PowerControl.lib	Wed Jun 20 10:19:41 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/JST2011/code/PowerControl/#8599d485662f
diff -r 000000000000 -r 4bc5ac4535b6 main.cpp
--- /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
diff -r 000000000000 -r 4bc5ac4535b6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jun 20 10:19:41 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479