想要sysbios配置中断,以核减通信为触发原:
配置如下:
/* Get the event id associated with the host interrupt. */
eventId = CpIntc_getEventId(9);
/* Map the System Interrupt i.e. the Interrupt Destination 0 interrupt to the DIO ISR Handler. */
CpIntc_dispatchPlug(CSL_CIC2_IPC_GR1, (CpIntc_FuncPtr)myCompletionIsr, (UArg)5, TRUE);
eventId = CpIntc_getEventId(9);
/* The configuration is for CPINTC0. We map system interrupt 112 to Host Interrupt 8. */
CpIntc_mapSysIntToHostInt(2, CSL_CIC2_IPC_GR1, 9);
eventId = CpIntc_getEventId(9);
/* Enable the Host Interrupt. */
CpIntc_enableHostInt(2, 9);
eventId = CpIntc_getEventId(9);
/* Enable the System Interrupt */
CpIntc_enableSysInt(2, CSL_CIC2_IPC_GR1);
eventId = CpIntc_getEventId(9);
EventCombiner_dispatchPlug (eventId, CpIntc_dispatch, 9, TRUE);