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.
adapt/gps.cpp@4:c75d5e5e6bfc, 2014-04-01 (annotated)
- Committer:
- dylanembed123
- Date:
- Tue Apr 01 15:52:08 2014 +0000
- Revision:
- 4:c75d5e5e6bfc
- Child:
- 6:f0248eb6714d
Update handler and adapter;
Who changed what in which revision?
User | Revision | Line number | New 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 | 4:c75d5e5e6bfc | 11 | return *pc; |
dylanembed123 | 4:c75d5e5e6bfc | 12 | } |