C55_l2SetIntPriority
Application Program Interface
2-37
C Interface
Syntax
C55_l2SetIntPriority(vecid, priority);
Parameters
Uns
vecid;
/* vector ID of interrupt */
Uns
priority;
/* new priority of interrupt */
Return Value
Void
Description
This API applies to the OMAP 2320/2420 platforms only.
The Level 2 Interrupt Controller (L2IC) allows you to set the relative
priority of each of the level 2 interrupts.
The default interrupt priorities match the interrupt number. That is, level
2 interrupts 0-31 (logical interrupt IDs 32-63) have priorities 0-31
respectively. The additional OMAP 2320 L2 interrupts 32-63 (logical
interrupt IDs 64-95) have priorities 32-63 respectively.
The L2 controller defines level 0 to be the highest priority and level 31 the
lowest (63 for the OMAP 2320). Therefore the default priority settings
give highest priority to L2 interrupt 0 and lowest to interrupt 31 (63 for the
OMAP 2320).
The level 2 interrupt priority setting is independent of whether the
interrupt is serviced by the dispatcher or not.
Example
Void main()
{
HWI_Attrs attrs;
attrs = HWI_ATTRS;
attrs.arg = (Arg)C55_L2_INT10;
HWI_dispatchPlug( C55_L2_INT10, (Fxn)l2FiqFunc, &attrs);
C55_l2SetIntPriority( C55_L2_INT10, 0);
...
}
See Also
C55_l2SetIntPriority
Set the priority of a level 2 interrupt