LEcture GPS Xbee sous interruption

Revision:
3:9a24090ff482
Parent:
2:824735b4c3a3
--- a/main.cpp	Tue Aug 07 09:06:22 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-#include "mbed.h"
-#include <stdio.h>
-#include "gps-ea-acc023.h"
-
-using namespace gpsxbee_MT3339;
-static GpsXbee gpsxbee;
-Serial pc2(USBTX, USBRX);           // Port USB vers PC pour debug
-DigitalOut led4_GPSON(LED4);    //clignote à chaque trame GPS (1 = allume)
-
-// affichage données GPS quand trame reçue complète au format NMEARMC ou NMEAGGA
-main()
-{
-    pc2.baud(115200); // liaison vers PC DEBUG
-    gpsxbee.GpsXbeeInit();
-    while(1) {
-        if (gpsxbee.gpsTrameRMC == gpsxbee.TRAME_OK && gpsxbee.gpsTrameGGA == gpsxbee.TRAME_OK) {
-            gpsxbee.gpsTrameRMC = gpsxbee.TRAME_WAIT;
-            printf(" RMC = %s\r\n",gpsxbee.gpsDataRMC);
-
-            gpsxbee.gpsTrameGGA = gpsxbee.TRAME_WAIT;
-            printf(" GGA = %s\r\n",gpsxbee.gpsDataGGA);
-            led4_GPSON = !led4_GPSON;
-        }
-    }
-}
\ No newline at end of file