Hi 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