WIP for dgps

Dependencies:   mbed

Committer:
dylanembed123
Date:
Thu Apr 03 16:27:23 2014 +0000
Revision:
6:f0248eb6714d
Parent:
4:c75d5e5e6bfc
Fix compile errors;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dylanembed123 4:c75d5e5e6bfc 1 #include "gps.h"
dylanembed123 4:c75d5e5e6bfc 2
dylanembed123 4:c75d5e5e6bfc 3 Serial* GPS::gps=NULL;
dylanembed123 4:c75d5e5e6bfc 4
dylanembed123 4:c75d5e5e6bfc 5 Serial& GPS::getSerial(){
dylanembed123 4:c75d5e5e6bfc 6 if(gps==NULL){
dylanembed123 4:c75d5e5e6bfc 7 // Init Serial USB
dylanembed123 4:c75d5e5e6bfc 8 gps=new Serial(GPSPINTX,GPSPINRX);
dylanembed123 4:c75d5e5e6bfc 9 gps->baud(GPSBAUD);//gps->baud(115200);//57600);
dylanembed123 4:c75d5e5e6bfc 10 }
dylanembed123 6:f0248eb6714d 11 return *gps;
dylanembed123 4:c75d5e5e6bfc 12 }