This commit is contained in:
2024-03-26 15:42:29 +08:00
parent 49919f3191
commit 20a974886c
3 changed files with 105 additions and 106 deletions

View File

@@ -7,7 +7,14 @@
#include "pico/stdlib.h"
#include "hardware/uart.h"
#include "hardware/clocks.h"
#include "hardware/watchdog.h"
#define GPS_UART uart1
#define GPS_UART_TX 9 // 接EC800M TX 上
#define GPS_UART_RX 8 // 接EC800M RX 上
#define GPS_DATA_BITS 8
#define GPS_STOP_BITS 1
#define GPS_UART_BAUD_RATE 115200
#define GPSDATA_LENGTH 8192
@@ -17,11 +24,6 @@ typedef struct GPS_ {
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_);
extern void EC800M(void *p);
#endif