## Using Your DDK

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

### Physical Keyboard Device Driver (Device-independent and device-dependent)

Driver Description:

The Physical Keyboard Device Driver supports OS/2 interrupt-driven architecture. This driver receives the Make- and Break-keystroke scan codes along with special keyboard hardware codes.

The SRC\DEV\KBD\KBDBASE directory contains the hardware-independent source code and device driver. The output device driver is named KBDBASE.SYS and is loaded by the OS/2 kernel at system initialization time. This driver cannot be renamed.

The SRC\DEV\KBD\IBMKBD directory contains the hardware-dependent source code and device driver. The driver is loaded by including BASEDEV=IBMKBD. SYS in the CONFIG.SYS file. IBMKBD.SYS can be renamed because the keyboard IDC can be used to register a replacement driver.

Compilers/Assemblers Required:

         Microsoft MASM 5.1      (supplied with the DDK)
         Microsoft C 6.0

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.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.

To build the keyboard device-independent driver:

3.Change the directory to DDK\BASE\SRC\DEV\KBD\KBDBASE.

4.Invoke NMAKE on the resident makefile.

To build the keyboard device-dependent driver:

5.Change the directory to DDK\BASE\SRC\DEV\KBD\IBMKBD.

6.Invoke NMAKE on the resident makefile.

Files Created by Successful Build:

         Device-independent version:
         Directory:  \DDK\BASE\SRC\DEV\KBD\KBDBASE

         o  KBDBASE.SYS

         Device-dependent version:
         Directory:  \DDK\BASE\SRC\DEV\KBD\IBMKBD

         o  IBMKBD.SYS