EBIKE-FreeRTOS/Source/EC800M_GPS.h
2024-04-14 18:38:39 +08:00

42 lines
870 B
C

#ifndef EC800M_GPS_H
#define EC800M_GPS_H
/* Scheduler include files. */
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pico/stdlib.h"
#include "hardware/gpio.h"
#include "hardware/clocks.h"
#include "hardware/watchdog.h"
#include "pico/multicore.h"
#include "hardware/i2c.h"
#include "pico/binary_info.h"
#include "hardware/uart.h"
#include "hardware/pwm.h"
#include "hardware/adc.h"
#define EC800M_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[20];
char N[20];
char E[20];
} GPS_;
extern int EC800M_UART_INIT();
extern void EC800M_GPS(void *p);
#endif