How to define an interrupt in PIC18F?
void low_priority interrupt Low_Priority_Interrupt(void) {
    if (TMR1IE &amp;&amp; TMR1IF) {
        TMR1H = 0xFE;//Pre load for 125 ms
        Timer1_Isr();
        TMR1IF = 0;
        return;
    }
}

void high_priority interrupt High_Priority_Interrupt(void) {
    if (TX2IE &amp;&amp; TX2IF) {
        SerialTx_Isr();
        TX2IF = 0;
        return;
    }
    if (RC2IE &amp;&amp; RC2IF) {
        SerialRx_Isr();
        RC2IF = 0;
        return;
    }
}