/PIC Stuff/PICX_12F1840_Clock/INTERRUPTS.c |
---|
1,6 → 1,6 |
#include <xc.h> |
#include "defines.h" |
#include "INTERRUPTS.h" |
#include "I2C1.h" |
void Interrupt_Enable() { |
INTCONbits.GIE = 1; |
14,11 → 14,11 |
void interrupt InterruptHandler(void) { |
// // Check to see if we have an I2C interrupt |
// if (PIR1bits.SSPIF) { |
// I2C_Interrupt_Handler(); |
// PIR1bits.SSPIF = 0; |
// } |
// Check to see if we have an I2C1 interrupt |
if (PIR1bits.SSP1IF) { |
I2C1_Interrupt_Handler(); |
PIR1bits.SSP1IF = 0; |
} |
//#ifndef UART_TX_ONLY |
// // Check to see if we have an interrupt on USART1 RX |