void init_int(void) {
// Used to enable global interrupts. Should not be really changed
INTCONbits.GIE = 1; // enable all HIGH priority interrupts. Set 0 to disable high Priority inerrupts
INTCONbits.PEIE = 1; // enable all LOW priority interrupts. 0 to disable.
RCONbits.IPEN = 1; // enable priority levels with interrupts. If 0, only HIGH levels interrupts will exexute
// Here, enable what interrupts you need to enable and set if you want it to be high priority or low.
PIE1bits.SSPIE = 1; // engable SPI interrupt; 0 to disable.
IPR1bits.SSPIP = 0; // make SPI low priority interrupt; change to 0 to make it low priority
// Here EEPROM interrupt Hardware is enabled
PIE2bits.EEIE = 1; // enable interrupts
IPR2bits.EEIP = 1; // high priority
// UART interrupt bits loaded here
PIE1bits.TXIE = 1; // enable interrupts
IPR1bits.TXIP = 1; // high priority interrupt
// ADD more interrupt enablings.
}