This commit is contained in:
2024-03-26 10:34:11 +08:00
parent ca33b6e342
commit 49919f3191
3 changed files with 86 additions and 74 deletions

View File

@@ -2,6 +2,7 @@
#define EC800M_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pico/stdlib.h"
#include "hardware/uart.h"
@@ -10,12 +11,17 @@
#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 char *EC800M_GPS_DATA_PARSING(char *GPS_DATA);
extern void reset_data();
extern void EC800M_GPS_DATA_PARSING(char *GPS_DATA, GPS_ * gps_);
#endif