Subversion Repositories Code-Repo

Rev

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

Rev 273 Rev 277
Line 34... Line 34...
34
    // Initialize I2C pins (dont really need to as the I2C code does it)
34
    // Initialize I2C pins (dont really need to as the I2C code does it)
35
    I2C_1_CLK_TRIS = 1;
35
    I2C_1_CLK_TRIS = 1;
36
    I2C_1_DAT_TRIS = 1;
36
    I2C_1_DAT_TRIS = 1;
37
    I2C_2_CLK_TRIS = 1;
37
    I2C_2_CLK_TRIS = 1;
38
    I2C_2_DAT_TRIS = 1;
38
    I2C_2_DAT_TRIS = 1;
-
 
39
 
-
 
40
    // Set the CPS pins
-
 
41
    CPS_L_TRIS = 1;
-
 
42
    CPS_R_TRIS = 1;
-
 
43
    CPS_L_ANSL = 1;
-
 
44
    CPS_R_ANSL = 1;
-
 
45
    CPS_R_WPU = 0;
-
 
46
    CPS_L_WPU = 0;
39
}
47
}
40
 
48
 
41
void IO_IOC_Enable(void) {
49
void IO_IOC_Enable(void) {
42
    // Clear all IOC flags
50
    // Clear all IOC flags
43
    IOCAF = 0x0;
51
    IOCAF = 0x0;