// perform the counting functions for pin 11 void __ISR( _EXTERNAL_1_VECTOR , ipl2) INT1Interrupt( void) { if (ExtCurrentConfig[11] == EXT_PER_IN) { INT1Value = INT1Count; INT1Count = 0; } else INT1Count++; mINT1ClearIntFlag(); // Clear the interrupt flag return; }
void __ISR(_EXTERNAL_1_VECTOR, ipl1) _Interrupt_Z_Limit(void) { BSP_AxisDisable(Z_AXIS); zLimitDetected = TRUE; /* Clear the interrupt flag */ mINT1ClearIntFlag(); }
/* Specify interupt priority 1, but stop the interupt once detected */ void __ISR(_EXTERNAL_1_VECTOR, IPL3) _Int1Handler(void) { reset(); bitIndex = 0; mINT1ClearIntFlag(); }