user_routines_fast.c void InterruptHandlerLow () { unsigned char int_byte; if (INTCON3bits.INT2IF && INTCON3bits.INT2IE) /* The INT2 pin is RB2/DIG I/O 1. */ { INTCON3bits.INT2IF = 0; #ifdef ENABLE_GTS_LEFT printf("I WAS HERE ON THE LEFT\n"); GTS_Left_Handler(); // call the left encoder interrupt handler (in team171.c) #endif } else if (INTCON3bits.INT3IF && INTCON3bits.INT3IE) /* The INT3 pin is RB3/DIG I/O 2. */ { INTCON3bits.INT3IF = 0; #ifdef ENABLE_GTS_RIGHT printf("I was on the right\n"); GTS_Right_Handler(); // call the left encoder interrupt handler (in team171.c) #endif } else if (INTCONbits.RBIF && INTCONbits.RBIE) /* DIG I/O 3-6 (RB4, RB5, RB6, or RB7) changed. */ { int_byte = PORTB; /* You must read or write to PORTB */ INTCONbits.RBIF = 0; /* and clear the interrupt flag */ } /* to clear the interrupt condition. */ else { CheckUartInts(); /* For Dynamic Debug Tool or buffered printf features. */ } }