## Using Your DDK

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

### MPU401 Physical Device Driver

Driver Description:

The MPU-401 driver is an audio device driver which is designed to work with any MPU401-compatible hardware.

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

The 16-bit PDD Runtime Library is a set of files and headers to assist you in developing OS/2 Warp 16-bit PDD's using the Watcom C/C++ compiler, version 10.0 and higher.

Compilers/assemblers Required:

              WATCOM C

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 your DDK installed drive and DDK represents the DDK installed directory. On the CD-ROM, the TOOLS directory path is DDK\ TOOLS.

2.Make sure the WATCOM 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.

4.To build the MPU401 Device Driver, change the directory to \DDK\BASE\SRC \DEV\MME\MPU401 and invoke WMAKE on the resident makefile.

Files Created By Successful Build:

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

         o  MPU401.SYS

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

         o  RUNTIME.LIB