Subversion Repositories Code-Repo

Rev

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

Rev 113 Rev 114
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
#ifdef _BASE_STATION
40
    // Enable interrupt for INT1
41
    // Enable interrupt for INT1
41
    INTCON3bits.INT1IE = 1;
42
    INTCON3bits.INT1IE = 1;
-
 
43
#endif
42
}
44
}
43
 
45
 
44
void interrupt_enable() {
46
void interrupt_enable() {
45
    // Peripheral interrupts can have their priority set to high or low.
47
    // Peripheral interrupts can have their priority set to high or low.
46
    // Enable both high-priority interrupts and low-priority interrupts
48
    // Enable both high-priority interrupts and low-priority interrupts