Hi all,
I have problem about 6678 uart interrupt.
I use the pdk example:Texas Instruments\pdk_C6678_1_0_0_17\packages\ti\platform\evmc6678l
and i tried two code as following to set the uart interrupt:
(1)
CpIntc_mapSysIntToHostInt(0, 148, 32);
CpIntc_dispatchPlug(148, (CpIntc_FuncPtr)myrxint, NULL, TRUE);
CpIntc_enableHostInt(0, 32);
eventId = CpIntc_getEventId(32);
Hwi_Params_init(¶ms);
params.arg = 32;
params.eventId = eventId;
params.enableInt = TRUE;
params.priority = 2;
Hwi_create(5, &CpIntc_dispatch, ¶ms, NULL);
Hwi_enableInterrupt(5);
Hwi_enable();
(2)
CpIntc_dispatchPlug(CSL_INTC0_UARTINT, (CpIntc_FuncPtr)myrxint, NULL, TRUE);
CpIntc_mapSysIntToHostInt(0, CSL_INTC0_UARTINT, 32);
CpIntc_enableHostInt(0, 32);
CpIntc_enableSysInt(0, CSL_INTC0_UARTINT);
eventId = CpIntc_getEventId(32);
EventCombiner_dispatchPlug (eventId, CpIntc_dispatch, 32, TRUE);
CSL_FINS (hUartRegs->IER, UART_IER_ERBI, CSL_UART_IER_ERBI_ENABLE);
CSL_FINS (hUartRegs->IER, UART_IER_ETBEI, CSL_UART_IER_ETBEI_ENABLE);
CSL_FINS (hUartRegs->IER, UART_IER_ELSI, CSL_UART_IER_ELSI_ENABLE);
CSL_FINS (hUartRegs->IER, UART_IER_EDSSI, CSL_UART_IER_EDSSI_ENABLE);
I can get the eventld value.
But I can`t call my interrupt server function myrxint.
Please tell me why?