test code Just sending gps output
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:47f843629085
- Child:
- 1:fb3a6e1626c7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Apr 18 14:15:25 2015 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" + +Serial pc(USBTX, USBRX); // tx, rx +Serial gps(PA_2, PA_3);// tx, rx p9 p10 + +int main() +{ + char c; + gps.baud(4800); + + pc.printf("gps start! \r\n"); + + while(1) { +// if(gps.readable()){ + c = gps.getc(); + pc.printf("ok \r\n"); + pc.putc(c); +// } else { +// } + } + } + + \ No newline at end of file