PowerPC 80x serial communications manager (QNX Neutrino)
You must be root to start this driver. |
devc-serppc800 [[options] [device[^brg_base[,memory_base]]]]... & devc-tserppc800 [[options] [device[^brg_base[,memory_base]]]]... &
PowerPC 80x
The options are position-dependent and affect the subsequent ports.
The order in which you specify the -E or -e, and -S or -s options matters:
Options | Mode | Software flow control |
---|---|---|
-e | Edited | Enabled |
-S -e | Edited | Enabled |
-e -S | Edited | Disabled |
-E | Raw | Disabled |
-s -E | Raw | Disabled |
-E -s | Raw | Enabled |
device | brg_base |
---|---|
smc1 | 1 |
smc2 | 2 |
scc1, scc3 | 3 |
scc4 | 4 |
The devc-serppc800 manager is a small serial device manager for QNX Neutrino. It supports the builtin serial ports present in the PowerPC 80x series.
The devc-tserppc800 manager is a "tiny" version of devc-serppc800 that's intended for memory-constrained systems. It doesn't support special character editing (e.g. toggling insert mode, special erase characters).
All devices are fully interrupt driven and by default support standard hardware flow control on input and output (RTS/CTS). This can be disabled by the -F option.
Hardware flow control is not supported in edited mode. |
If your application uses /dev/console,
you should create a link from it to one of
/dev/ser1, /dev/ser2, ... by adding
a line like this to the buildfile used by mkifs:
[type=link] /dev/console = /dev/ser1 |
A read request by default returns when at least 1 character is available. To increase efficiency, you can control three parameters to control when a read is satisfied:
If the Min value is greater than the size of the input buffer, the Min value is clipped to the size of the buffer. To avoid this, the size of the input buffer can be changed with the -I option. |
These parameters are set using library routines (see tcgetattr(), tcsetattr(), readcond() and TimerTimeout() in the Library Reference).
The devc-serppc800 manager supports both raw and edited modes, making it a real tty device.
The following fields and flags are supported in the termios structure:
Field | Supported flags |
---|---|
c_cc | All characters |
c_iflag | BRKINT ICRNL IGNBRK IXON |
c_oflag | OPOST |
c_cflag | CLOCAL CSIZE CSTOPB PARENB PARODD |
c_lflag | ECHO ECHOE ECHOK ECHONL ICANON IEXTEN ISIG NOFLSH |
Start devc-serppc800 in edited mode, specifying the clock rate and baud rate, for the devices smc1 and smc2:
devc-serppc800 -e -c20000000 -b9600 smc1 smc2 &
Character I/O drivers (devc-*) in the Utilities Summary