TI E2E Community
Digital Signal Processors (DSP)
C6000 Multicore DSP
Keystone Multicore Forum (C66, 66A, AM5)
question about 6678 uart interrupt
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:
CpIntc_mapSysIntToHostInt(0, 148, 32);
CpIntc_dispatchPlug(148, (CpIntc_FuncPtr)myrxint, NULL, TRUE);
eventId = CpIntc_getEventId(32);
params.arg = 32;
params.eventId = eventId;
params.enableInt = TRUE;
params.priority = 2;
Hwi_create(5, &CpIntc_dispatch, ¶ms, NULL);
CpIntc_dispatchPlug(CSL_INTC0_UARTINT, (CpIntc_FuncPtr)myrxint, NULL, TRUE);
CpIntc_mapSysIntToHostInt(0, CSL_INTC0_UARTINT, 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?
Don't forget to verify answers to your forum questions by using the green "Verify Answer" button.
Please follow the link http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/199563/731668.aspx#731668 . There is a detailed discussion on the interrupts.
Make sure you are doing the correct setup for the interrupts.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.