Follow these steps to configure the interrupt controller.
- Set polarity and type of system event through the System Interrupt Polarity Registers (PRUSS_INTC_SIPR1 and PRUSS_INTC_SIPR0) and the System Interrupt Type Registers (PRUSS_INTC_SITR1 and PRUSS_INTC_SITR0). Polarity of all system interrupts is always high. Type of all system interrupts is always pulse.
- Map system event to PRUSS_INTC channel through PRUSS_INTC_CMRi (i=0 to 15) channel mapping registers.
- Map channel to host interrupt through PRUSS_INTC_HMR0/1/2 registers. Recommended channel “x” to be mapped to host interrupt “x”.
- Clear system interrupt by writing 1 to PRUSS_INTC_SECR0/1 registers.
- Enable host interrupt by writing index value to PRUSS_INTC_HIEISR register.
- Enable interrupt nesting if desired.
- Globally enable all interrupts through register PRUSS_INTC_GER[0] ENABLE_HINT_ANY bit.