30 lines
565 B
C
30 lines
565 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"
|
|
|
|
#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
|
|
|
|
typedef struct GPS_ {
|
|
char time[10];
|
|
char N[20];
|
|
char E[20];
|
|
} GPS_;
|
|
|
|
extern void EC800M(void *p);
|
|
|
|
#endif
|