File: README.RTL

package info (click to toggle)
rtlinux 3.1pre3-3
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k
  • size: 4,896 kB
  • ctags: 4,228
  • sloc: ansic: 26,204; sh: 2,069; makefile: 1,414; perl: 855; tcl: 489; asm: 380; cpp: 42
file content (24 lines) | stat: -rw-r--r-- 920 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This module allows RT-threads to communicate via serial ports.
The documentation is in the *.html files.

testcom.c and com_posix.c demonstrate basic communication.
They send and receive data through COM1 at 38400 bps, 8N1.
Run make tests to build them.

Before loading the rt_com module, you need to disable the
Linux serial driver for COM1 by running
setserial /dev/ttyS0 uart none.
Then connect another computer's COM port with a nullmodem cable and
run minicom or another terminal program on the other computer.


Note for com_posix.c: even if the table in rt_com.c is changed to use a
different COM port (e.g., irq=3, io=0x2f8 for /dev/ttyS1 or COM2), the
RT-thread should still open("/dev/ttyS0").

This is because this version of rt_com assumes the device minor
numbers correspond to the lines in the rt_com_table. This
"feature" remains to be fixed (see the TODO file).

Michael Barabanov (baraban@fsmlabs.com)