优化
This commit is contained in:
14
EC800M.h
14
EC800M.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user