This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Chip Interrupt Controller 与 System Event 对应关系咨询

你好,有两个问题帮忙确认下:

  1. Chip Interrupt Controller输出的Broadcast EventsSecondary Events有什么区别,与System Event 事件表有关系吗?
  2. CIC中断映射配置函数Void CpIntc_mapSysIntToHostInt(UInt id, UInt sysInt, UInt hostInt)

hostInt取值依据是多少,与System Event Mapping — C66x CorePac Primary Interrupts有关系?

pdk_keystone2_3_01_04_07\packages\exampleProjects  实例工程SRIO_LpbkDioIsrK2HC66BiosExampleProject内配置srio输出中断如下:

 

    /* Map the System Interrupt i.e. the Interrupt Destination 0 interrupt to the DIO ISR Handler. */

    CpIntc_dispatchPlug(CSL_CIC0_SRIO_INTDST0, (CpIntc_FuncPtr)myDioTxCompletionIsr, (UArg)hSrioDrv, TRUE);

 

    /* The configuration is for CPINTC0. We map system interrupt 112 to Host Interrupt 8. */

    CpIntc_mapSysIntToHostInt(0, CSL_CIC0_SRIO_INTDST0, 8);

 

    /* Enable the Host Interrupt. */

    CpIntc_enableHostInt(0, 8);

 

    /* Enable the System Interrupt */

    CpIntc_enableSysInt(0, CSL_CIC0_SRIO_INTDST0);

 

    /* Get the event id associated with the host interrupt. */

    eventId = CpIntc_getEventId(8);

 

    /* Plug the CPINTC Dispatcher. */

EventCombiner_dispatchPlug (eventId, CpIntc_dispatch, 8, TRUE);

hostInt 取值为 8 ,eventId 返回值为74,这两个值在System Event Mapping — C66x CorePac Primary Interrupts对应关系。

  • 输入到CIC的事件认为是system event,输入到core INTC的事件是host event,CIC的输入与输出映射关系是可以配置的,CIC输出与core INTC的输入是固定映射关系。

    CIC输出到core INTC的事件都可以认为是secondary event,而其中有些是可以同时路由到多核,认为是广播事件。

    参考:http://processors.wiki.ti.com/index.php/Configuring_Interrupts_on_Keystone_Devices