Bmag incl gps rettelse
Dependencies: mbed WDT MODSERIAL BME280
Diff: main.h
- Revision:
- 0:b3313c5ffca3
- Child:
- 1:f347c4ef25fa
- Child:
- 2:39c4a85dc2a4
diff -r 000000000000 -r b3313c5ffca3 main.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Fri Feb 17 09:33:57 2017 +0000 @@ -0,0 +1,34 @@ +#include <string> +#include "mbed.h" +#include "MODSERIAL/MODSERIAL.h" +#include "NMEA/NMEA.h" +#include "USBHostMSD.h" +#include "WatchDog/WatchDog.h" + +#define FWSRCVERSION "x" +#define FWIVERSION "1.2" +#define IDENTIFIERID "00" +#define ENCODING "0x0" +#define TIMEZONE "ZZZ" +#define SOURCEIDENTIFICATION "0001" +#define INTERPRETERID "0001" +#define GROUP "00" +#define DATALINEVERSION "01" +#define TAG "BMAG" + +using std::string; + +//GPS communication init +static MODSERIAL gps(p13,p14, 128); + +//Debug serial connection +static Serial dbg(USBTX, USBRX); + +//GPS Rx callback prototype +void rxCallback(MODSERIAL_IRQ_INFO *q); + +//GPS NMEA Parser +static NMEA gpsNMEA; + + +