## Using Your DDK

[prev][next][parent][TOC]

### PCMCIA Client Services Driver Sample

Driver Description:

This driver contains the sample code that communicates with Card Services and also provides the Client Services common header file (CLIENT.H). The following enhancements to the previous version have been incorporated in this release:

Multiple cCode segment (swappable) support
Multiple thread support (queueing requests)
Retry support when "busy" status is returned from CS
Revision check of CS

Compilers/Assemblers Required:

         IBM Assembly Language Processor   (supplied with the DDK)

         Microsoft C 6.0
              or
         Watcom C 10.0 'B' Level or higher

Note: Watcom 'B' Level files are available through CompuServe or through TCP/IP at ftp.watcom.on.ca in the \PUB\BBS\LANG_V10.0/C directory.

Build Instructions:

1.Set the environment variables so the correct tools are picked up during the build.

    e.g., SET PATH=<drive>:\DDK\TOOLS;%PATH%

Where <drive> represents your DDK installed drive and DDK represents the DDK installed directory. On the CD-ROM, the TOOLS directory path is DDK\ TOOLS.

2.Build as follows, depending on the compiler you are using:

If you use the Microsoft C 6.0 compiler:

a.Before the FIRST build is attempted, run (only once) the COPYC60.CMD REXX command file in the \DDK\TOOLS directory. This command copies the set of needed files from your copy of the Microsoft C 6.0 compiler to the proper directories under the DDK base directory.

    e.g.  COPYC60 <MSCdrive>:\'MSC60' <drive>:\DDK

Where <MSCdrive> represents the Microsoft C 6.0 installed drive and 'MSC60' represents the Microsoft C 6.0 installed directory, <drive> represents your DDK installed drive and DDK represents the DDK installed directory.

b.Change the directory to DDK\BASE\SRC\DEV\PCMCIA\CLSAMPLE.

c.Invoke NMAKE on the resident makefile.

If you use the Watcom C 10.0 'B' Level or higher compiler:

a.Make sure the Watcom C 10.0 'B' Level compiler or higher is installed and the environment variables are correctly set.

    e.g.,
      SET PATH=<watcomdrive>:\'watcom'\BINB;%PATH%
      SET INCLUDE=<watcomdrive>:\'watcom'\H;%INCLUDE%
      SET LIB=<watcomdrive>:\'watcom'\LIB;%LIB%

Where <watcomdrive> represents the Watcom C 10.0 'B' Level or higher installed drive and 'watcom' represents the Watcom C 10.0 'B' Level or higher installed directory.

b.Change the directory to DDK\BASE\SRC\DEV\PCMCIA\CLSAMPLE.

c.Invoke NMAKE WAT=1 on the resident makefile.

Build Notes:

When building the driver using the Watcom Compiler, you must use uppercase letters when specifying the option WAT=1.

Files Created by Successful Build:

         Directory:  \DDK\BASE\SRC\DEV\PCMCIA\CLSAMPLE

         o  CLSAMPLE.SYS