Forum Discussion
Altera_Forum
Honored Contributor
20 years agoSetting IRQ handler for Altera UART
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 ????????????????1 Reply
- Altera_Forum
Honored Contributor
--- 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.