GPS/GNSS UBX protocol test for UART
Dependencies: mbed LoopTicker GPSUBX_UART
Diff: main.cpp
- Revision:
- 0:27bfb46452f0
- Child:
- 1:97c5e20d51a9
diff -r 000000000000 -r 27bfb46452f0 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Sep 13 16:05:45 2021 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "GPSUBX_UART.hpp" + +Serial pc(USBTX, USBRX, 115200); +//GPSUBX gps(PF_0, PF_1, 0x23, +9, 400000); +GPSUBX_UART gps(PD_1, PD_0, 38400, +9); + +int main() +{ + gps.Attach(); + while (1) + { +// gps.Receive(); + } +} \ No newline at end of file