There is a "Code Snippet for CAP mode Absolute Time, Rising Edge Trigger" on page 29 of SPRU807B. Assuming the following is added to the code snippet:
//-----------------------------------------------------------------------------
EALLOW;
GpioCtrlRegs.GPAMUX1.bit.GPIO7 = 3;
PieVectTable.ECAP1_INT = &IsrECap1;
EDIS;
IER |= M_INT4;
PieCtrlRegs.PIEIER4.bit.INTx1 = 1;
//-----------------------------------------------------------------------------
and the following code is in the ISR:
//-----------------------------------------------------------------------------
interrupt void IsrECap1(void)
{
PieCtrlRegs.PIEACK.all = PIEACK_GROUP4;
}//IsrECap1
//-----------------------------------------------------------------------------
what additional code is needed to ensure the ISR is handled correctly and the device is set to run again automatically?