C55_enableInt
Application Program Interface
2-31
C Interface
Syntax
C55_enableInt(vecid);
Parameters
Uns
vecid;
/* vector ID for interrupt */
Return Value
Void
Description
This function enables an individual interrupt referenced by a vector ID.
The vector ID can match a level 1 interrupt (vecids 0-31) or an
OMAP2320/2420 level 2 interrupt (vecids 32-63). For OMAP 2320, the
additional level 2 interrupts 32-63 can be enabled using vecids 64-95.
The c55.h header file provides some convenient interrupt ID definitions.
Example
Void main ()
{
HWI_Attrs attrs = HWI_ATTRS;
// pass vector ID to myIsr
attrs.arg = (Arg)C55_L2_INT1;
// Plug Level 2 Interrupt #1 Vector
HWI_dispatchPlug(C55_L2_INT1, (Fxn)myIsr, &attrs);
// Enable Level 2 interrupt
C55_enableInt(C55_L2_INT1);
}
See Also
C55_enableInt
Enable an individual interrupt