Subversion Repositories Code-Repo

Rev

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

Rev 111 Rev 112
Line 35... Line 35...
35
    
35
    
36
    // Enable I2C interrupt
36
    // Enable I2C interrupt
37
    PIE1bits.SSPIE = 1;
37
    PIE1bits.SSPIE = 1;
38
    // Enable Port B interrupt
38
    // Enable Port B interrupt
39
    INTCONbits.RBIE = 1;
39
    INTCONbits.RBIE = 1;
-
 
40
    // Enable interrupt for INT1
-
 
41
    INTCON3bits.INT1IE = 1;
40
}
42
}
41
 
43
 
42
void interrupt_enable() {
44
void interrupt_enable() {
43
    // Peripheral interrupts can have their priority set to high or low.
45
    // Peripheral interrupts can have their priority set to high or low.
44
    // Enable both high-priority interrupts and low-priority interrupts
46
    // Enable both high-priority interrupts and low-priority interrupts