-
Notifications
You must be signed in to change notification settings - Fork 0
/
hapi.def
28 lines (23 loc) · 1.01 KB
/
hapi.def
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
//------------------------------------------------------------------------------
// pinout
sbit HSI = P2^3;
sbit HSO = P2^2;
sbit D1 = P2^1;
sbit D0 = P2^0;
//------------------------------------------------------------------------------
// definice ID pro zarizeni na komunikaci (0-3)
#define HAPI_DEVICE_GSMTINY 0
#define HAPI_DEVICE_CONFIG 1
#define HAPI_DEVICE_DET1 2
#define HAPI_DEVICE_DET2 3
//------------------------------------------------------------------------------
// Definice vlastni adresy
#define HAPI_MY_DEVICE_ID HAPI_DEVICE_GSMTINY
#define HAPI_DEST_DEFAULT HAPI_DEVICE_CONFIG
//------------------------------------------------------------------------------
// Timeout pro preruseni komunikace
#define HAPI_SND_TIMEOUT TIME_1SEC
#define HAPI_REC_TIMEOUT TIME_1SEC
#define HAPI_QUIET_TIMEOUT TIME_500MS
//------------------------------------------------------------------------------
#define HAPI_RECBUF_SIZE 10