/PIC Stuff/PICX_16F1825_Sabertooth/INTERRUPTS.c |
---|
1,6 → 1,7 |
#include "defines.h" |
#include "INTERRUPTS.h" |
#include "I2C1.h" |
#include "UART.h" |
void Interrupt_Init() { |
} |
31,4 → 32,27 |
return; |
} |
if (PIR1bits.RCIF) { |
// Call the handler |
UART_RX_Interrupt_Handler(); |
// Clear the interrupt flag |
PIR1bits.RCIF = 0; |
return; |
} |
if (PIR1bits.TXIF) { |
// Call the handler |
UART_TX_Interrupt_Handler(); |
// Clear the interrupt flag |
PIR1bits.TXIF = 0; |
return; |
} |
} |