28 lines
500 B
C
28 lines
500 B
C
#ifndef EC800M_H
|
|
#define EC800M_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "pico/stdlib.h"
|
|
#include "hardware/uart.h"
|
|
|
|
#define GPS_UART uart1
|
|
#define GPS_UART_BAUD_RATE 115200
|
|
#define GPSDATA_LENGTH 8192
|
|
|
|
typedef struct GPS_ {
|
|
char time[10];
|
|
char N[20];
|
|
char E[20];
|
|
} GPS_;
|
|
|
|
extern char GPSDATA[GPSDATA_LENGTH];
|
|
extern int GPSDATA_LEN;
|
|
|
|
extern int EC800M_INIT();
|
|
extern char *EC800M();
|
|
extern void EC800M_GPS_DATA_PARSING(char *GPS_DATA, GPS_ * gps_);
|
|
|
|
#endif
|