21#include "GPSLocation.h"
23#include "IEEE1588Timer.h"
25#define GPS_SER_NUM SER_PORT_LPUART8
26#define PIN_GPS_UART_TX 70
27#define PIN_GPS_UART_RX 69
29#define PIN_GPS_PPS1 41
30#define PIN_GPS_PPS2 85
33#define NMEA_PPS_WINDOW_NS (800000000u)
44 void DecodeGSV(
char *pGPSData);
45 void DecodeGSA(
char *pGPSData);
46 void DecodeRMC(
char *pGPSData);
47 void DecodeGGA(
char *pGPSData);
48 void ProcessUbloxMsg(
char * ublox_buffer);
49 void SendUbloxMsg(uint8_t msg_class, uint8_t msg_id, uint8_t * payload, uint16_t payload_len);
50 void WriteRawData(
const uint8_t *data,
size_t length);
56 time_t getRMCTimeValue(
const char *time,
const char *date);
60 GPSSatTracker satTracker;
65 GPSFixQuality fixQuality;
68 static const int CFG_RESPONSE_BUF_SIZE = 4096;
69 uint8_t cfgResponseBuf[CFG_RESPONSE_BUF_SIZE];
70 volatile uint16_t cfgResponseLen;
72 volatile bool cfgResponseReady;
74 bool SendCfgValGet(uint8_t layer, uint16_t position,
const uint32_t *keys,
int numKeys);
75 bool SendCfgValSet(uint8_t layers,
const uint8_t *cfgData,
int cfgDataLen);
81 uint32_t GPSTaskStack[USER_TASK_STK_SIZE / 2];
88 uint32_t start_captime;
96 static void staticreadLoop(
void *p);
Definition IEEE1588Timer.h:32
#define TICKS_PER_SECOND
System clock ticks per second.
Definition constants.h:49
Semaphores are used to control access to shared resources or or to communicate between tasks in a mul...
Definition nbrtos.h:407