UDI driver coding basics

Build instructions

Build instructions are statements in the udiprops.txt file that are evaluated at compile time of the driver modules. A discussion of all the compile time options can be found in the UDI Core Specification under Build-Only Properties.

In the sample drivers, the compile_options statement is used to define values used in the driver source files listed in the source_files statements.

cmos_udi.c sample driver udiprops.txt (cont.)
   compile_options -DCMOS_GIO_META=1 -DCMOS_BRIDGE_META=2
   source_files udi_cmos.c
pseudod.c sample driver udiprops.txt (cont.)
   compile_options -DPSEUDO_GIO_META=1 -DPSEUDO_BUS_META=2
   source_files pseudo.c pseudo.h

The values used for these constants correspond to the values given in the meta statements in udiprops.txt; see ``Module and region declarations''. They are also used in the source files; see ``Control block indexes and structures''.


Next topic: Versions and header files
Previous topic: Device types

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004