User`s guide
KwikNet System Construction
K
A
DAK
121
3.7.4 AMX Application Construction Summary
Construction of any KwikNet application for use with AMX will closely follow the steps
needed to build the KwikNet TCP/IP Sample Program. These steps are summarized
below. Note that the make file provided with KwikNet sample programs actually does
steps 5, 6, 7 and 8.
1. Using the KwikNet Configuration Builder, open the Sample Program's Network
Parameter File KNSAMLIB.UP (see Chapter 2.3). Use the builder to generate your
KwikNet Library Make File KNSAMLIB.MAK. Use this file, the Microsoft make utility
and your C compiler and librarian to generate the
KwikNet Library (see Chapter 3.2).
2. If you wish to use your own clock driver, do step 3. If you wish to use your own
serial driver for logging messages to a terminal, do step 4. Otherwise, go to step 5.
3. If you wish to use your own working AMX Clock Driver instead of the simulated
clock provided by the sample program, edit the Sample Program User Parameter File
and Target Parameter File (not required for AMX 86) to accommodate your clock
driver. Edit the
KwikNet Sample Program Link Specification File KNSAMPLE.LKS to
include your clock driver object module.
4. If you ported the AMX Sample Program serial I/O driver to your hardware and wish
to use it to log messages to a terminal, edit the sample program Application Header
file KNZZZAPP.H and define symbol KN_CS_DEVTYPE to be KN_CS_DEVAMX. Edit the
KwikNet Sample Program Link Specification File KNSAMPLE.LKS to include your
serial driver object module.
5. Using the AMX Configuration Builder, open the Sample Program's User Parameter
File KNSAMSCF.UP. Use the builder to generate the AMX System Configuration
Module KNSAMSCF.C. Compile the module as described in the AMX Tool Guide for
the toolset which you are using.
6. If you are using AMX 86, go to step 7. Otherwise, using the AMX Configuration
Builder, open the Sample Program's Target Parameter File. Use the builder to
generate the AMX Target Configuration Module. Assemble the module as described
in the AMX Tool Guide for the toolset which you are using.
7. Compile the
KwikNet TCP/IP Sample Program application modules listed in Chapter
3.6. Compile these modules with full debug information to improve your view when
running the sample with your debugger.
8. Link the modules listed in the KwikNet Sample Program Link Specification File
KNSAMPLE.LKS together with your C Library to create your KwikNet application load
module (see Chapter 3.5).
9. Use your debugger to load and execute the KwikNet Sample Program.