📄 define.h
字号:
#ifndef _DEFINE_H
#define _DEFINE_H
//declare
typedef unsigned char Byte;
typedef unsigned int Word;
typedef unsigned long Long;
Long l_temp;//临时变量long型
Word w_temp;//临时变量word型
Byte b_temp;//临时变量byte型
Byte year;//年
Byte month;//月
Byte week;
Byte date;//日
Byte hour;//时
Byte minute;//分
Byte second;//秒
Byte gps_year;//gps年
Byte gps_month;//gps月
Byte gps_week;
Byte gps_date;//gps日
Byte gps_hour;//gps时
Byte gps_minute;//gps分
Byte gps_second;//gps秒
long latitude;//纬度*0.000001度
long longitude;//精度*0.000001度
unsigned char gps_status;//gps状态
unsigned long gps_num;//精度*0.000001度
long x0_longitude;//0点原始坐标*0.1米
long y0_latitude;
long x0_post;//0点相对坐标 坐标
long y0_post;
long x1_post;//上一点的相对坐标坐标
long y1_post;
long x2_post;//最新一点坐标
long y2_post;
long x3_post;//最新一点坐标
long y3_post;
long x_dis;
long y_dis;
long area;//面积
#define PI2RDIV360 111195 //
long xishu;
Byte flag_area;
/************ 串口程序相关变量************/
// 串口0 程序相关变量
Byte send0_buf[100];//串口发送缓冲区50字节
Byte sink0_buf[100];//串口接受缓冲区50字节
Byte sink0_count;//串口接受计数器
Byte sink0_num=100;//串口包长变量
Byte usart_flag;//串口相关标志变量
#define SINK0_START 0//串口0接受完成标志位
#define SINK0_FINISH 1//串口0接受完成标志位
Byte key;//按键
Byte key_dis;//按键
#define KEY_PIN PINA
#define KEY_START PA1
#define KEY_FINISH PA3
#define LED_PORT PORTB
#define LED PB5
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -