Subversion Repositories Code-Repo

Rev

Rev 202 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 202 Rev 222
Line 9... Line 9...
9
#define UART_RTS_LAT LATCbits.LATC6
9
#define UART_RTS_LAT LATCbits.LATC6
10
 
10
 
11
#define I2C_CLK_TRIS TRISBbits.TRISB6
11
#define I2C_CLK_TRIS TRISBbits.TRISB6
12
#define I2C_DAT_TRIS TRISBbits.TRISB4
12
#define I2C_DAT_TRIS TRISBbits.TRISB4
13
 
13
 
14
#define LED_TRIS TRISCbits.TRISC1
14
#define LED_R_TRIS TRISCbits.TRISC0
15
#define LED_LAT LATCbits.LATC1
15
#define LED_R_LAT LATCbits.LATC0
16
 
16
 
17
#define BLE_RESET_TRIS TRISCbits.TRISC7
17
#define LED_G_TRIS TRISCbits.TRISC1
18
#define BLE_RESET_LAT LATCbits.LATC7
18
#define LED_G_LAT LATCbits.LATC1
19
 
19
 
20
#define BLE_SLEEP_TRIS TRISCbits.TRISC2
20
#define LED_B_TRIS TRISCbits.TRISC2
21
#define BLE_SLEEP_LAT LATCbits.LATC2
21
#define LED_B_LAT LATCbits.LATC2
22
 
22
 
-
 
23
// Active low reset
23
#define BLE_MODE_TRIS TRISCbits.TRISC0
24
#define BLE_RESET_TRIS TRISCbits.TRISC7
24
#define BLE_MODE_LAT LATCbits.LATC0
25
#define BLE_RESET_LAT LATCbits.LATC7
25
 
26
 
26
#define ADDRESS_GYRO 0x6B
27
#define ADDRESS_GYRO 0x6B
27
#define ADDRESS_ACCL 0x19
28
#define ADDRESS_ACCL 0x19
28
#define ADDRESS_MAGN 0x1E
29
#define ADDRESS_MAGN 0x1E
29
#define ADDRESS_LIPO 0x36
30
#define ADDRESS_LIPO 0x36
30
 
31
 
31
#define _XTAL_FREQ 32000000
32
#define _XTAL_FREQ 32000000
32
 
33
 
-
 
34
#define LED_R_MAX_BRIGHTNESS 5
-
 
35
#define LED_G_MAX_BRIGHTNESS 20
-
 
36
#define LED_B_MAX_BRIGHTNESS 30 // Dont set this past 100!
-
 
37
 
33
#endif	/* MAIN_H */
38
#endif	/* MAIN_H */
34
 
39
 
35
// <editor-fold defaultstate="collapsed" desc="Pinouts">
40
// <editor-fold defaultstate="collapsed" desc="Pinouts">
36
/*
41
/*
37
1/RA3 - MCLR
42
1/RA3 - MCLR