SECTION 3:
ADDING A NEW TEST
This section describes how an experienced programmer adds a new
test.
The procedures for running new tests must conform to the
procedures for running existing tests (see the discussion on how
to run tests).
The following three steps are necessary to add a
new test:
1.
Access the source.
(You need a source license to access
the source.)
2.
Change the source.
(Only an experienced programmer
should alter the source in any w a y . )
3.
Recompile the source using the make utility.
Each diagnostic must consist of two parts:
the diagnostic
itself, which calls and passes functions, and an initialization
sequence, which disables any interrupts enabled by the
diagnostic.
FUNCTIONS
The diagnostic function is called with a subtest number (int) as
its single argument.
If this integer equals 0, then all subtests
should run.
The diagnostic itself must manage the meaning of
this number and make sure that it is within range.
The
diagnostic must also update the global int CurSubtest to contain
the current subtest number.
A function error handles all error
processing.
The diagnostic must be prepared for this function to
return when executing in long or continuous mode.
The calling
sequence is:
error(longstring,subtest,shortstring)
where
longstring
subtest
is a string that will be printed
on a terminal, if a terminal is
present.
is a positive integer that
specifies the subtest.
3-1
Содержание MOTOTRBO 6300
Страница 1: ...System 6300 Service Manual 87601194A Ä MOTOROLA Four Phase Systems Inc ...
Страница 7: ...LIST OF TABLES Table 2 System 6300 Diagnostic Tests vii ...
Страница 8: ......
Страница 44: ......
Страница 48: ......
Страница 50: ...following alternative Normal Use Alternative D 2 ...
Страница 58: ......
Страница 61: ......