在CPINTC例程中有如下代码:
CSL_CPINTC_Handle hnd;
CSL_IntcContext intcContext;CSL_IntcEventHandlerRecord EventHandler[30];
CSL_IntcObj intcObj;
CSL_IntcHandle hTest;CSL_IntcGlobalEnableState state;
CSL_IntcEventHandlerRecord EventRecord;
CSL_IntcParam vectId;
printf ("Debug: GEM-INTC Configuration…\n");
/* INTC module initialization */
intcContext.eventhandlerRecord = EventHandler;
intcContext.numEvtEntries = 10;
if (CSL_intcInit(&intcContext) != CSL_SOK) {
printf("Error: GEM-INTC initialization failed\n");
return;
}
请问红色部分CSL_IntcContext这个参数的意义是什么?
intcContext.eventhandlerRecord = EventHandler;
intcContext.numEvtEntries = 10;
两个参数的含义是什么?
另外关于intc部分的手册不知道再哪里有?
谢谢了。
noaming:
你好,这两个参数是定义传入CSL_intcInit函数的module-context structure(模块上下文结构体),
详细手册,请看Chip Support Library API Reference Guide:
CSL_Status CSL_intcInit ( CSL_IntcContext * pContext )
Description
This is the initialization function for the INTC CSL. This function must be called before calling any
other API from this CSL.The context should be initialized such that numEvtEntries is equal to the
number of records capable of being held in the eventhandlerRecord.
xiang song:
回复 noaming:
请问:Chip Support Library API Reference Guide这个文件在那里下载啊?
我现在正在用TMS320C6670,看到这个地方也有点疑惑CSL_Status CSL_intcInit ( CSL_IntcContext * pContext ),这个函数的参数如何确定不太明白。