-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathb_Defines.ino
107 lines (106 loc) · 2.36 KB
/
b_Defines.ino
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/**
* This file contains only defines
* and acts as a configuration-file.
*/
/*
* Generate a file specific warning during compilation,
* so that it is possible to identify
* which files are being compiled.
*/
#warning Defines
/*
* The serial-device which will
* be used for debugging purposes.
*/
#define DEBUG_SERIAL Serial
/*
* The baudrate which will be used
* for the serial port.
*/
#define DEBUG_SERIAL_BAUD_RATE 9600
/*
* The serial-device to which
* the telephone will be connected.
*/
#define TELEPHONE_SERIAL Serial1
/*
* The baudrate which will be used
* for the telephone.
*/
#define TELEPHONE_SERIAL_BAUD_RATE 9600
/*
* The name of the function
* which will be called on an incoming call.
* It has to have the following header:
* function(callerid_t cid)
*/
#define TELEPHONE_INCOMING_CALL_FUNCTION incomingCall
/*
* The name of the function
* which will be called on an incoming call.
* It has to have the following header:
* function(callerid_t cid, char* message)
*/
#define TELEPHONE_INCOMMING_MESSAGE_FUNCTION incommingMessage
/*
* The country calling code. When a call is made,
* some telephone-providers provide the callerId
* without the country calling code,
* so it needs to be added.
*/
#define COUNTRY_CALLING_CODE 31
/*
* If the callerId has this length
* the country calling code needs to be added.
*/
#define CALLER_ID_WITHOUT_COUNTRY_CALLING_CODE_LENGTH 9
/*
* The pin which will be used
* for opening the gate.
*/
#define GATE_OUTPUT_PIN 7
/*
* The delay between the HIGH-
* and LOW-state when opening the gate.
*/
#define GATE_OPEN_DELAY 500
/*
* Test the callerId-functions.
*/
#define TEST_CALLER_ID 1
/*
* Test the eeprom-functions.
*/
#define TEST_EEPROM 2
/*
* Test the pdu-functions.
*/
#define TEST_PDU 4
/*
* Test the telephone-functions.
*/
#define TEST_TELEPHONE 8
/*
* Test the queue-functions.
*/
#define TEST_QUEUE 16
/*
* This is the test (or main-program)
* which will be run.
*/
#define TEST TEST_NONE
/*
* Enable or disable debugging.
* If this is set to 0, nothing will be printed to serial.
* If this isn't set to 0, debugging-information
* will be printed to serial.
*/
#define DEBUG 1
/*
* Enable or disable administration-interface.
* If this is set to 0, the administration-interface
* will be disabled.
* If this isn't set to 0, the administration-interface
* will be enabled.
*/
#define ADMIN 0