Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124722

Forum Post: RE: Problems about AIF2 Interrupt configured by CSL and HWI

$
0
0

Hi

 

I'm not BIOS expert but I can show you my BIOS version HWI configuration. see code below for your information.

Hwi_Handle  AVV_Intc_Setup (int  vectId, int  eventId, void (*pt2Func)(void*), void *intcArg )
{
Hwi_Params  hwiAttr;
Hwi_Params_init(&hwiAttr);
if( 1) //!AVV_Intc_EventCombUsed[eventCombNum] )
{
//Disable the HWI and Clear any pending HWI
Hwi_disableInterrupt((
UInt) vectId );
 hwiAttr.enableInt = 0;
 hwiAttr.eventId = eventId;
 hwiAttr.arg = (UArg) intcArg;
 
        hwiHdl = Hwi_create(vectId, (Hwi_FuncPtr)pt2Func, &hwiAttr, NULL);
        Hwi_eventMap(vectId, eventId );
//Enable interrupt
Hwi_enableInterrupt((UInt) vectId );
}
 
return( hwiHdl );
}
 
and call this function from your application.

Aif2HwiHdl = AVV_Intc_Setup(15, 87 + evtId, &avv_aif2_isr, NULL);

Hope this could help to you.

Regards,

Albert


Viewing all articles
Browse latest Browse all 124722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>