-
Notifications
You must be signed in to change notification settings - Fork 1
/
DEFINE.H
62 lines (54 loc) · 1.06 KB
/
DEFINE.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#define TMAX 2
#define CH_MAX 2
#define MS_1000 1000
#define MS_20 30//轻按下键时间
//#define MS_60 30
//#define MS_150 900
#define MS_500 300//连续按键500ms
#define MS_2S 2000//连续按键2s
#define MS_1_5S 1500//连续按键2s
#define MS_EXITPAR 10*MS_2S //退出菜单时间 12s
#define MS_INIT MS_2S/2 //初始界面时间 1s
#define KEYCAP 180
#define PVADDR 0xf0
#include "ad.h"
#include "i2_rw.h"
#include "uart_0.h"
#include "code.h"
#include "int.h"
#include "led.h"
#include "bs.h"
#include "eeprom_routines.h"
#include "math.h"
#include "ht1621.h"
#include "sht10.h"
#include "pic.h"
#include "main.h"
#include "menu.h"
#include "key.h"
#include "alarm.h"
#define parconfigindex 1
#define parbiansongindex 4
#define parhumiindex 3
#define humihidecount 2
#define collectcount 5
typedef struct {
int sc;
int bsl;
int bsh;
int ha;
int yh;
int la;
int yl;
int bslvalue;
int bshvalue;
}_parItem;
extern volatile _parItem parItem[CH_MAX];
typedef struct {
int addr;
int baud;
int spe;
int jzflag;
int outflag;
}_configItem;
extern volatile _configItem configItem;