Changes

How to use UARTs

569 bytes removed, 15:50, 29 August 2012
m
Check UARTs devices
[ 0.969085] serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
[ 1.153503] serial8250.3: ttyS3 at MMIO 0x49042000 (irq = 80) is a ST16654
root@localhost:~/PROGRAM# </pre> Get information about UARTs, type: <pre>setserial -g /dev/ttyS[0123]</pre> The result will be similar at that: <pre>root@localhost:~/PROGRAM# setserial -g /dev/ttyS*/dev/ttyS0, UART: 16654, Port: 0x0000, IRQ: 72/dev/ttyS1, UART: 16654, Port: 0x0000, IRQ: 73/dev/ttyS2, UART: 16654, Port: 0x0000, IRQ: 74/dev/ttyS3, UART: 16654, Port: 0x0000, IRQ: 80root@localhost:~/PROGRAM# </pre> If you don't have setserial installed type: <pre>apt-get install setserial</pre> NOTE: Starting from Kernel 2.6.37.y, ttySx are named ttyOx. You need to edit source program.
=== Connect peripherals ===
4,199
edits