GIO Module
Application Program Interface
2-121
The following figure shows how modules are related in an application that
uses the GIO module and an IOM mini-driver:
The GIO module is the basis of communication between applications and
mini-drivers. The DEV module is responsible for maintaining the table of
device drivers that are present in the system. The GIO module obtains
device information by using functions such as DEV_match.
GIO Manager
Properties
The following global properties can be set for the GIO module in the GIO
Manager Properties dialog of the DSP/BIOS Configuration Tool or in a
Tconf script:
❏
Enable General Input/Output Manager.
Set this property to true to
enable use of the GIO module. If your application does not use GIO,
you should leave it disabled to prevent additional modules (such as
SEM) from being linked into your application.
Tconf Name: ENABLEGIO
Type: Bool
Example:
bios.GIO.ENABLEGIO = false;
❏
Create Function
.The function the GIO module should use to create
a synchronization object. This function is typically SEM_create. If you
use another function, that function should have a prototype that
matches that of SEM_create: Ptr CREATEFXN(Int count, Ptr attrs);
Tconf Name: CREATEFXN
Type: Extern
Example:
bios.GIO.CREATEFXN =
prog.extern("SEM_create");
Application
typically TSK threads;
SW I threads possible with custom ization
GIO M odule API
DEV m odule
(device driver table)
IOM mini-driver
(IO M_Fxns function table)