Hi All,
I am trying to enable and use UART2 on Beaglebone black board.
I have enabled it successfully, and connected USB to serial cable to UART2
pins, and I sent some characters to UART2 and I could see those characters
on picocom -b 115200 /dev/ttyUSB1 console.
But the problem is when I type some characters on the picocom -b 115200
/dev/ttyUSB1 console, picocom -b 115200 /dev/ttyUSB0 console is getting
hung. I enabled interrupts to detect the characters on picocom -b 115200
/dev/ttyUSB1
Can some one help me to resolve this issue.
Below is the code snipet for interrupt enable.
This code snippet is written inside probe funciton.
fdev->irq = platform_get_irq(pdev,0);
printk ( "irq number for uart2 = %d\n", fdev->irq);
reg_write(fdev,UART_IER_RDI,UART_IER);
ret =
devm_request_irq(&pdev->dev,fdev->irq,uart_handler,IRQF_SHARED,"serial",fdev);
if(ret) {
printk ("Couldnot request irq\n");
}
static irqreturn_t uart_handler(int irq, void *dev) {
printk("IRQ is handled\n");
return IRQ_HANDLED;
}
Regards,
Madhu
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/1bf2e8ab-1a77-44f4-96d4-6f4e5f099e02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.