GPS USB dongle host

Dependencies:   mbed

main.cpp

Committer:
va009039
Date:
2012-05-04
Revision:
1:82eaa5761719
Parent:
0:1c6af92fdc79

File content as of revision 1:82eaa5761719:

#include "mbed.h"
#include "usbgps.h"

Serial pc(USBTX, USBRX);

int main()
{
    pc.baud(460800);
    
    usbgps gps;
    while(1) {
        if (gps.readable()) {
            int c = gps.getc();
            printf("%c", c);
        }
    }
}