Hi,
I am trying to understand how to set interrupt in DSP core through starterware examples. Here are the two commands:
#ifdef _TMS320C6X
// Initialize the DSP INTC
IntDSPINTCInit();
// Enable DSP interrupts globally
IntGlobalEnable();
I trace into the function and here it is:
void IntDSPINTCInit (void)
{
unsigned int step = 0;
/* Set ISRs to default "do-nothing" routine */
while(step != C674X_INT_COUNT)
c674xISRtbl[step++] = IntDefaultHandler;
/* Set interrupt service table pointer to the vector table */
#ifdef __TI_EABI__
ISTP = (unsigned int)_intcVectorTable;
#else
ISTP = (unsigned int)intcVectorTable;
#endif
/* Clear pending CPU maskable interrupts (if any) */
ICR = 0xFFF0;
/* Enable NMIE bit to allow CPU maskable interrupts */
IER = (1 << C674X_NMI);
}
void IntGlobalEnable (void)
{
_enable_interrupts();
}
Here it stop and I couldn't trace where is the ICR/ IER is defined and I couldn't trace _enable_interrupts() function definition. Please help on this.
Regards,
Mok