Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by shakthi@Apr 10 2006, 01:20 AM hi,
i am working on a custom board with 3 uatrs. all 3 always active. i have written an polling based uart driver for this taking u-boot driver as reference. this works fine. i am using this in application written in nios 2 ide.
since it is polling based i am losing data on other 2 uarts when working on 1 uart. so best way to receive data is by setting an irq handler for all 3 uarts.
How do I set an interrupt handler for UART ????????????????[/b] <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14173) --- Quote End --- [/b] --- Quote End --- if you use nios2 uclinux, the uart driver code is in drivers/serial/NIOSserial.c . up to 4 uarts are supported. (you may add more) irq handler is registered with request_irq() kernel api.