Yu Hui Wee
/
GPS_Test
target board c027
Fork of C027_GPSTransparentSerial by
main.h@4:dc72072eb8d0, 2016-09-02 (annotated)
- Committer:
- Ulhingl
- Date:
- Fri Sep 02 04:31:51 2016 +0000
- Revision:
- 4:dc72072eb8d0
target board c027
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ulhingl | 4:dc72072eb8d0 | 1 | #include "mbed.h" |
Ulhingl | 4:dc72072eb8d0 | 2 | |
Ulhingl | 4:dc72072eb8d0 | 3 | int baud = GPSBAUD; |
Ulhingl | 4:dc72072eb8d0 | 4 | |
Ulhingl | 4:dc72072eb8d0 | 5 | // open the gps serial port |
Ulhingl | 4:dc72072eb8d0 | 6 | Serial gps(GPSTXD, GPSRXD); |
Ulhingl | 4:dc72072eb8d0 | 7 | |
Ulhingl | 4:dc72072eb8d0 | 8 | // open the PC serial port and (use the same baudrate) |
Ulhingl | 4:dc72072eb8d0 | 9 | Serial pc(USBTX, USBRX); |
Ulhingl | 4:dc72072eb8d0 | 10 | |
Ulhingl | 4:dc72072eb8d0 | 11 | void parse(char *cmd, int n); |