This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to configure software interrupts without using of DSP/BIOS?

I want to know how to create a software interrupt with or w/out using of CSL. As far as I know there are several non-maskable SWI that are defined in the CSL, but for some reasons there are no examples on how to use them. Can someone provide a few several examples?

  • Hello!

    I use it this way:

    Initialization:

      IRQ_clear(SINT31_EVENT);
      IRQ_plug(SINT31_EVENT, &SWI31Routine);
      IRQ_enable(SINT31_EVENT);

    The interrupt routine has to be declared with interrupt keyword:

    interrupt void SWI31Routine(void)
    {...}

    Calling the interrupt routine:

      asm(" INTR #31");

    or

      asm(" TRAP #31");