Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHow to set ISR in NiosII?
Hi all, Now I want to receive info from a custom UART in NiosII IDE by Interruption. I notice the code for receiving interruption in NiosI goes like this: ----------- in...
Altera_Forum
Honored Contributor
21 years agoHi Slacker,
Sorry,perhaps I did not describe my problem explicitly, what I want is not writing a sheer ISR by myself, but I just want to take advantage of the ISR routines which are the NiosII provided and available to be used. The code I posted above previously is alt_irq_register(MY_UART_IRQ, (void*) &context, my_rxd); IOWR_ALTERA_AVALON_UART_CONTROL(MY_UART_BASE, ALTERA_AVALON_UART_STATUS_RRDY_MSK); I really don't know whether I 'm on the right way or not, could you give me some suggestions about that? Besides, I redirect my stdin and stdout in my system library properties both to "my_uart", is that right? Many thanks! Regards, Don