## Using Your DDK

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

### Timer Driver

Driver Description:

The high-resolution timer driver (HRT) is used to provide millisecond-accuracy timing services to device drivers and applications.

Compilers/Assemblers Required:

              WATCOM C/C++ 11.0

Build Instructions:

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

         SET PATH=<drive>:\DDK\TOOLS;%PATH%

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

2.Make sure the WATCOM C/C++ compiler is installed and the environment variables are correctly set.

    e.g.,
         SET WATCOM=<WATCOMdrive>:\'WATCOM'
         SET PATH=<WATCOMdrive>:\'WATCOM'\BINP;<WATCOMdrive>:\'WATCOM'\BINW;%PATH%

Where <WATCOMdrive> represents the WATCOM C installed drive and 'WATCOM' represents the WATCOM C installed directory.

3.To build the 16-bit PDD Runtime library, change the directory to \DDK\ BASE\SRC\DEV\MME\WPDDLIB and invoke WMAKE on the resident makefile. (To use Watcom C/C++ 11.0 change 'wdisasm' to 'wdis' in the makefile.)

4.To build the Timer0 sample, first ensure that the WPDDLIB\RUNTIME.LIB has built. Then change the directory to \DDK\BASE\SRC\DEV\MME\TROPEZ and invoke WMAKE on the resident makefile.

Files Created By Successful Build:

         Directory:  \DDK\BASE\SRC\DEV\MME\WPDDLIB

         o  RUNTIME.LIB

         Directory: \DDK\BASE\SRC\DEV\MME\TIMER0

         o  TIMER0.SYS