Other Parts Discussed in Thread: TMS320C6678
Tool/software: TI-RTOS
Hi,
In the PCIE example code, in PlatformSetupMSIandINTX function
cpuEvent = 48;
xbarIndex = cpuEvent - 31;
vector = 12;
/* Configure xbar */
CSL_xbarIrqConfigure (cpu, xbarIndex, CSL_XBAR_PCIe_SS1_IRQ_INT1);
/* Construct Hwi object for this UART peripheral. */
HwiP_Params_init (&hwiInputParams);
hwiInputParams.name = "PCIE_MSI_AND_INTX";
hwiInputParams.arg = (uintptr_t)handle;
#if defined (_TMS320C6X) || defined (__ARM_ARCH_7A__)
hwiInputParams.priority = 0;
#else /* M4 */
hwiInputParams.priority = 0x20;
#endif
hwiInputParams.evtId = cpuEvent;
pcieHwi = HwiP_create(vector, PlatformMsiIntxIsr, &hwiInputParams);
How are the values for vector, cpuevent and xbarIndex choosen.
Here mapping PCIESS1 crossbar to IRQcrossbar of DSP1 enables interrupting the DSP1 of PCIESS1. so xbarIndex is choosen randomly or any perticular reason behind?? What is the vector 12.
Please clarify on this. What are we doing in this piece of code
Thanks & Regards
Manjula