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.

IPC例程 on C6678



您好:

        最近在看IPC相关例程,下面是初始化的程序

int32_t intcInit()
{
/* INTC module initialization */
context.eventhandlerRecord = Record;
context.numEvtEntries = CSL_INTC_EVENTID_CNT;
if (CSL_intcInit (&context) != CSL_SOK)
return -1;

/* Enable NMIs */
if (CSL_intcGlobalNmiEnable () != CSL_SOK)
return -1;

/* Enable global interrupts */
if (CSL_intcGlobalEnable (&state) != CSL_SOK)
return -1;

/* INTC has been initialized successfully. */
return 0;
}

其中if (CSL_intcGlobalEnable (&state) != CSL_SOK)
return -1;

里面的CSL_SOK是什么意思?还有括号里面的&state是怎么使用的?谢谢!