-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtyGSOctal.html
60 lines (47 loc) · 1.87 KB
/
tyGSOctal.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html>
<head>
<title>GreenSpring OctalUart IP Module Support</title>
<!-- Changed by: Peregrine McGehee, 2-May-1996 -->
<!-- Copied from http://www.cfht.hawaii.edu/~tcs/tcsiv/tygsoctal.html
and edited slightly by Andrew Johnson, 9-March-1999 -->
</head>
<body text="#000000" bgcolor="#ffffff" link="#000080" vlink="#707070" alink="0000080">
<h1>SBS OctalUart IP Module Support</h1>
<h2>Introduction</h2>
<p>
This software drives the SBS (formerly GreenSpring) OctalUart family of
Industry Pack modules to communicate with a number of RS-232, RS-422, and
RS-485 devices. Note that this driver is <b>not</b> compatible with newer
IP-OctalPlus modules as they use a different chipset.</p>
<p>
The driver uses <a href="drvIpac.html">drvIpac</a> for configuration of the
carrier board plus access routines for the SCC2698 octalUart used in the IP
modules. The driver implements a standard vxWorks terminal driver making use of
the vxWorks tyLib system library.</p>
<h2>
Configuration Example</h2>
<p>
The following is an example of setting up the device driver from a vxWorks
startup script:</p>
<blockquote>
<pre>
# Initialize our drvIpac carrier
ipacAddCarrier &ipmv162, "A:m=0xe0000000,64 l=3,2"
# Number of tyGSOctal modules to support:
tyGSOctalDrv 1
# Init module on carrier 0, slot 0, IRQ #80
MOD0 = tyGSOctalModuleInit("GSIP_OCTAL232", 0x80, 0, 0)
# Create devices
PORT00 = tyGSOctalDevCreate("/tyGS/0/0", MOD0, 0, 512, 512)
PORT02 = tyGSOctalDevCreate("/tyGS/0/2", MOD0, 2, 512, 512)
PORT04 = tyGSOctalDevCreate("/tyGS/0/4", MOD0, 4, 512, 512)
PORT06 = tyGSOctalDevCreate("/tyGS/0/6", MOD0, 6, 512, 512)
# Configure the ports
# baud, parity(N/E/O), stop, bits, flow(N/H)
tyGSOctalConfig PORT00, 9600, 'N', 1, 8, 'N'
tyGSOctalConfig PORT02, 9600, 'N', 1, 8, 'N'
tyGSOctalConfig PORT04, 9600, 'N', 1, 8, 'N'
tyGSOctalConfig PORT06, 9600, 'N', 1, 8, 'N'</pre>
</blockquote>
</body>
</html>