Hi,
I have some difficulty to use PCIe INTA interrupt. I try to map the sys interrupts to hwi interrupt on two different ways. First set with C Code in main function, second with XGCONF GUI. The two of them don't act. I never observe a interrupt.
I work on custom platform with C6678.
My piece of C code to set up the interrupt.
#include <ti/sysbios/family/c66/tci66xx/CpIntc.h>
volatile unsigned int pcie_inta = 0;
volatile unsigned int event50Done=0;
void event50Fxn(UArg arg)){event50Done = 1;}
void hwi_pcie_inta(UArg arg){pcie_inta =1;}
int main(void){
Ipc_start();
int eventId;
ti_sysbios_family_c64p_Hwi_Params params;
CpIntc_mapSysIntToHostInt(0, 50, 32);
CpIntc_dispatchPlug(50, &event50Fxn, 50, TRUE);
CpIntc_enableHostInt(0, 32);
CpIntc_enableSysInt(0, 50);
eventId = CpIntc_getEventId(32);
Hwi_Params_init(¶ms);
params.arg = 32;
params.eventId = eventId;
params.enableInt = TRUE;
Hwi_create(4, &hwi_pcie_inta, ¶ms, NULL);
Hwi_enableInterrupt(4);
Hwi_enable();
BIOS_start ();
return 1;}
What have I forgotten? I hope you have further idea.
Regards