Hello,
Using the "polled" mode for uart1 works without any problems at all.
But now I would like to make the uart interrupt driven. Now when I
change the device table to the following, the uart only transmitts ONE
character and then hangs...
(NOTE: added _int to each of the com1's)
const struct device_table_entry *device_table[] = {
&com1_int, /* stdin */
&com1_int, /* stdout */
&com1_int, /* stderr */
0 };
The code has the following for the uart1 setup:
sp.baud = 115200uL;
sp.length = UART_WORD_LEN_8;
sp.parity = UART_PARITY_NONE;
sp.stop = UART_STOP_BITS_2;
irq.FIQ = 0;
irq.pri = (INT_PRIORITY)5;
void)ioctl( fileno(stdout), INTERRUPT_SETUP, &irq);
void)ioctl( fileno(stdout), UART_SETUP, &sp);
Now is there something else I need to setup??
Thanks,
J.Message
Getting lnewlib-lpc (Ver 5a) uart1 interrupts to work with WINARM
2006-04-29 by ocnek1