Colin Stearns
/
qcControl
QC Control software
Fork of dgps by
adapt/gps.h@7:c75d5e5e6bfc, 2014-04-01 (annotated)
- Committer:
- dylanembed123
- Date:
- Tue Apr 01 15:52:08 2014 +0000
- Revision:
- 7:c75d5e5e6bfc
- Child:
- 12:e42985e3ea64
Update handler and adapter;
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 | 7:c75d5e5e6bfc | 7 | #define GPSPINTX p9 |
dylanembed123 | 7:c75d5e5e6bfc | 8 | #define GPSPINRX p10 |
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 |