Class Interrupt

  • All Implemented Interfaces:
    Impc5200, Ippc32
    Direct Known Subclasses:
    PeripheralInterrupt

    public class Interrupt
    extends PPCException
    implements Impc5200
    The class for the PPC interrupt exception.
    Every interrupt handler is an instance of the class Interrupt.
    Author:
    Urs Graf
    • Field Detail

      • nofUnexpInterrupts

        public static int nofUnexpInterrupts
        Each interrupt request, which cannot be handled by a registered interrupt handler increments this counter
      • nofInterrupts

        static int nofInterrupts
    • Constructor Detail

      • Interrupt

        public Interrupt()
    • Method Detail

      • action

        public void action()
        This is the interrupt handler. Please make sure to overwrite this method for your own interrupt handlers.
      • interrupt

        static void interrupt()
      • installPeripheralInterrupt

        public static void installPeripheralInterrupt​(Interrupt interrupt,
                                                      int peripheralNr)
        Used to install user defined peripheral interrupt handlers.
        Parameters:
        interrupt - Instance of user defined peripheral interrupt handler
        peripheralNr - Peripherals are numbered according to table 7-4 in mpc5200 User Manual