Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Getting lnewlib-lpc (Ver 5a) uart1 interrupts to work with WINARM

2006-04-29 by ocnek1

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.