Subversion Repositories Code-Repo

Rev

Rev 114 | Rev 116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 114 Rev 115
Line 7... Line 7...
7
//#define _DEBUG
7
//#define _DEBUG
8
#define _BASE_STATION
8
#define _BASE_STATION
9
//#define _REMOTE
9
//#define _REMOTE
10
 
10
 
11
#ifdef _BASE_STATION
11
#ifdef _BASE_STATION
-
 
12
#define BASE_STATION_ADDRESS 2
12
#define _SPI2_V2
13
#define _SPI2_V2
13
#endif
14
#endif
14
#ifdef _REMOTE
15
#ifdef _REMOTE
15
#define _SPI2_V1
16
#define _SPI2_V1
16
#endif
17
#endif
17
 
18
 
18
#define BASE_STATION_ADDRESS 81
-
 
19
 
-
 
20
// Enable or disable debug prints depending on project preprocessor (_DEBUG)
19
// Enable or disable debug prints depending on project preprocessor (_DEBUG)
21
#ifdef _DEBUG
20
#ifdef _DEBUG
22
#define DBG_PRINT_MAIN(x) printf(x)
21
#define DBG_PRINT_MAIN(x) printf(x)
23
#define DBG_PRINT_I2C(x)
22
#define DBG_PRINT_I2C(x)
24
#define DBG_PRINT_XBEE(x)
23
#define DBG_PRINT_XBEE(x)
Line 37... Line 36...
37
#define RETURNID_ACC    10
36
#define RETURNID_ACC    10
38
#define RETURNID_GYRO   11
37
#define RETURNID_GYRO   11
39
#define RETURNID_CONN   12
38
#define RETURNID_CONN   12
40
#define RETURNID_BTN1   13
39
#define RETURNID_BTN1   13
41
#define RETURNID_BTN2   14
40
#define RETURNID_BTN2   14
-
 
41
#define RETURNID_NEW_REMOTE_SRC 15
-
 
42
#define RETURNID_NEW_REMOTE_CON 16
42
 
43
 
43
// Message type definitions
44
// Message type definitions
44
#define MSGTYPE_RESEND 1
45
#define MSGTYPE_RESEND 1
45
 
46
 
46
#define MSGTYPE_TIMER0      10
47
#define MSGTYPE_TIMER0      10