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.
Fork of AVC_gps22 by
Revision 0:59cfe30c337c, committed 2014-10-09
- Comitter:
- gerardo_carmona
- Date:
- Thu Oct 09 17:11:51 2014 +0000
- Child:
- 1:2c7ebb32acda
- Commit message:
- GPS first test, just extracting the nmea sentences
Changed in this revision
| 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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Oct 09 17:11:51 2014 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+DigitalOut led(LED_GREEN);
+Serial gps(PTC17, PTC16);
+Serial pc(USBTX, USBRX);
+
+int main(){
+ gps.baud(4800);
+ while (true) {
+ char str [200];
+ char c;
+ if (gps.readable()){
+ c = gps.getc();
+ if (c == '$') {
+ gps.scanf ("%199s",str);
+ pc.printf("%s \n",str);
+ //while (n >=
+ }
+ }else{
+ //pc.printf("No gps data \n");
+ }
+ led = !led; // toggle led
+ //wait(0.001f);
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Oct 09 17:11:51 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file
