Usage Examples
D-12
D.6.3
Enabling an L2 Interrupt Using "interrupt" Keyword
This C code example plugs and enables OMAP 24xx level 2 interrupt
number 1.
/*
* ======== l2_example3.c ========
* DSP/BIOS Level 2 interrupt example
*/
#include <std.h>
#include <hwi.h>
#include <log.h>
#include <c55.h>
extern LOG_Obj trace;
interrupt void myIsr ()
{
// Acknowledge this level 2 interrupt to the L2IC
C55_l2AckInt
();
// ...
// Your code here
// ...
}
Void main ()
{
// Plug Level 2 Interrupt #1 Vector
C55_plug(
C55_L2_INT1
, (Fxn)myIsr);
// Enable Level 2 interrupt
C55_enableInt
(C55_L2_INT1);
}