Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 157 → Rev 158

/PIC Stuff/PICX_27J13/base_INTERRUPTS.c/interrupts.c
1,12 → 1,12
#include <xc.h>
#include "defines.h"
#include "interrupts.h"
#include "uart.h"
#include "i2c.h"
#include "timers.h"
#include "base_INTERRUPTS.h"
#include "base_UART.h"
#include "base_I2C.h"
#include "base_TIMERS.h"
 
void Interrupt_Init() {
// Peripheral interrupts can have their priority set to high or low
// Peripheral base_INTERRUPTS.can have their priority set to high or low
// Decide on the priority of the enabled peripheral interrupts (0 is low, 1 is high)
 
// High priority interrupts
31,7 → 31,7
}
 
void Interrupt_Enable() {
// Peripheral interrupts can have their priority set to high or low.
// Peripheral base_INTERRUPTS.can have their priority set to high or low.
// Enable both high-priority interrupts and low-priority interrupts
RCONbits.IPEN = 1;
INTCONbits.GIEH = 1;