Hi, I'm using example from quickStartOMAP package called UART_hyperteminal. I menage to send some strings in loop but I have problems receiving using interrupt. This is the code responsible for settings :
static void setup_DSP_INTC (void){
// Map UART2 system interrupts to DSP INT4
CSL_FINS(dspintcRegs->INTMUX1, DSPINTC_INTMUX1_INTSEL4,
CSL_INTC_EVENTID_UARTINT2);
// Assign the address of the IST to the IST pointer
ISTP = (unsigned int)intcVectorTable;
// Clear all CPU maskable interrupts
ICR = DSPINTC_IST_ALL_MASK_INT;
// Enable INT4 interrupts
IER = DSPINTC_IST_NMI | DSPINTC_IST_INT4;
}/* setup_DSP_INTC */
I also added source file 'intvecs.asm' like in mentioned example. Then activated interrupts on UART2 and tried to handle event in function:
CSL_FINST(uart2Regs->IER, UART_IER_ERBI, ENABLE);
CSL_FINST(uart2Regs->IER, UART_IER_ETBEI, ENABLE);
interrupt void UART2_isr (void){ while(1); }
while(1) because I want to stop main loop in which I'm sending some ASCII codes using UART just to check if HWI is working.
Can you help me?
PS: Sorry for code in normal text but I cant'find any useful options to include code in this forum. Is there any?