Adi_Int_Cecunhook() Function; Interrupt Handlers - Analog Devices VisualDSP++ 5.0 Service Manual

Visualdsp++ 5.0 device drivers and system for blackfin processors
Table of Contents

Advertisement

Core Event Controller Functions
To ensure optimal performance, the application developer should manage
which interrupt handlers are hooked as primaries and which are hooked as
secondary handlers.

adi_int_CECUnhook() Function

The
adi_int_CECUnhook()
handler from the interrupt handler chain for a particular IVG level. When
called, the application passes in the IVG number and the address of the
interrupt handler function to be unhooked from the chain.
The function removes the interrupt handler from the chain of handlers for
the given IVG level. If the primary handler is being removed, the last sec-
ondary handler that was hooked becomes the new primary handler. If,
after removing the given interrupt handler, no interrupt handlers are left
in the IVG chain, the
appropriate bit in the CEC's
interrupt.

Interrupt Handlers

Since the interrupt handlers registered with the interrupt manager are
invoked from within the built-in IVG interrupt service routine (and there
may be several interrupts pending for the same IVG level), individual
interrupt handlers must not invoke the
Instead, they should return using the
handlers are in fact nothing more than typical C-callable subroutines.
Therrefore, each peripheral interrupt handler must conform to the
following template,
ADI_INT_HANDLER(mjk_SPORT_RX_handler)
{
...
...
}
2-8
function is used to unhook an interrupt
adi_int_CECUnhook()
register, thereby disabling the
IMASK
RTI
RTS
// user code
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
function masks the
instruction on completion.
return function. Interrupt

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?

Table of Contents