![](/media/cache/profiles/6781be9b5eb16b142d24c60a04c821e2.jpg.50x50_q85.jpg)
test code
Fork of GPS_U-blox_NEO-6M_Test_Code by
main.h@1:acd907fbcbae, 2014-08-22 (annotated)
- Committer:
- edodm85
- Date:
- Fri Aug 22 12:43:55 2014 +0000
- Revision:
- 1:acd907fbcbae
- Parent:
- 0:ea14ad6794af
Added support for LPC4330
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
edodm85 | 0:ea14ad6794af | 1 | #pragma once |
edodm85 | 0:ea14ad6794af | 2 | #include "mbed.h" |
edodm85 | 0:ea14ad6794af | 3 | #include "MODSERIAL.h" |
edodm85 | 0:ea14ad6794af | 4 | |
edodm85 | 0:ea14ad6794af | 5 | MODSERIAL pc(USBTX,USBRX); |
edodm85 | 0:ea14ad6794af | 6 | |
edodm85 | 1:acd907fbcbae | 7 | #if defined(TARGET_LPC1768) |
edodm85 | 1:acd907fbcbae | 8 | MODSERIAL gps(p13, p14); |
edodm85 | 1:acd907fbcbae | 9 | #elif defined(TARGET_LPC4330_M4) |
edodm85 | 1:acd907fbcbae | 10 | MODSERIAL gps(UART0_TX, UART0_RX); |
edodm85 | 1:acd907fbcbae | 11 | #endif |
edodm85 | 0:ea14ad6794af | 12 | |
edodm85 | 0:ea14ad6794af | 13 | |
edodm85 | 0:ea14ad6794af | 14 | char cDataBuffer[500]; |
edodm85 | 0:ea14ad6794af | 15 | int i = 0; |
edodm85 | 0:ea14ad6794af | 16 | |
edodm85 | 0:ea14ad6794af | 17 | |
edodm85 | 0:ea14ad6794af | 18 | void Init(); |
edodm85 | 0:ea14ad6794af | 19 | void parse(char *cmd, int n); |