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 dgps by
adapt/gps.h@12:e42985e3ea64, 2014-04-05 (annotated)
- Committer:
- dylanembed123
- Date:
- Sat Apr 05 22:27:18 2014 +0000
- Revision:
- 12:e42985e3ea64
- Parent:
- 7:c75d5e5e6bfc
- Child:
- 14:6be57da62283
Update packet.h (interface to other c++ code).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dylanembed123 | 7:c75d5e5e6bfc | 1 | #ifndef _GPS_H_ |
dylanembed123 | 7:c75d5e5e6bfc | 2 | #define _GPS_H_ |
dylanembed123 | 7:c75d5e5e6bfc | 3 | #include "mbed.h" |
dylanembed123 | 7:c75d5e5e6bfc | 4 | |
dylanembed123 | 7:c75d5e5e6bfc | 5 | |
dylanembed123 | 7:c75d5e5e6bfc | 6 | /// Define Pinout |
dylanembed123 | 12:e42985e3ea64 | 7 | #define GPSPINTX p28 |
dylanembed123 | 12:e42985e3ea64 | 8 | #define GPSPINRX p27 |
dylanembed123 | 7:c75d5e5e6bfc | 9 | |
dylanembed123 | 7:c75d5e5e6bfc | 10 | /// Define Baud |
dylanembed123 | 7:c75d5e5e6bfc | 11 | #define GPSBAUD 57600 |
dylanembed123 | 7:c75d5e5e6bfc | 12 | |
dylanembed123 | 7:c75d5e5e6bfc | 13 | class GPS{ |
dylanembed123 | 7:c75d5e5e6bfc | 14 | private: |
dylanembed123 | 7:c75d5e5e6bfc | 15 | static Serial* gps; |
dylanembed123 | 7:c75d5e5e6bfc | 16 | public: |
dylanembed123 | 7:c75d5e5e6bfc | 17 | /// \brief Call this function to get a hold of the serial for USB. |
dylanembed123 | 7:c75d5e5e6bfc | 18 | static Serial& getSerial(); |
dylanembed123 | 7:c75d5e5e6bfc | 19 | }; |
dylanembed123 | 7:c75d5e5e6bfc | 20 | #endif |