-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
41 lines (27 loc) · 1.3 KB
/
config.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
#ifndef CONFIG_H
#define CONFIG_H
#define DEVICE_PING_TIMEOUT 15000
typedef unsigned char uchar;
typedef unsigned char bool;
#define true 1
#define false 0
int SELF_ID;
#define USART_BAUDRATE 2400
#define BAUD_PRESCALE (((F_CPU / (USART_BAUDRATE * 16UL))) - 1)
#define STB_SERVER_ID 'C'
#define STB_ALIAS_SERVER 'P'
#define STB_ALIAS_TOKENBOOTH 'T'
#define STB_ALIAS_SERVICEBOOTH 'S'
#define STB_SERVER_PING_SERVICE 'p' /// ping the service booth
#define STB_SERVER_NEW_USER 'n' /// send a user to service booth
#define STB_SERVER_PING_TOKEN 'p' /// ping the token booth
#define STB_SERVER_DONE_USER 'D' /// say token booth that it's done with the new user
#define STB_SERVICE_FREE 'F' /// service booth is free
#define STB_SERVICE_BUSY 'B' /// service booth is busy
#define STB_TOKEN_NO_USER 'n' /// token booth has no new user
#define STB_TOKEN_HAS_USER 'u' /// token booth has new user
#define STB_TOKEN_DONE_USER 'd' /// token booth has processed the user
#define STB_CATEGORY_WITHDRAW 'w'
#define STB_CATEGORY_DEPOSIT 'd'
#define STB_CATEGORY_HELP 'h'
#endif // CONFIG_H