Configuration Module
3-5
Note:
Of the 68 bytes contained in the
loader.hex
file, only
21 bytes are data. The remaining 47 bytes consist of the
Intel format and checksum bytes.
3.3.2 Config Data Structure
The
config
data structure, defined in
config.h
, stores the enclosure
configuration and data to be returned in response to any of the SAF-TE
read commands. Additionally, this data structure polls intervals for
refreshing enclosure status information, register storage, data memory,
and program memory. The program memory stores the state machine
that is generated by user responses to mappings of the MPLED and
MPIO pins. To emphasize,
config.hex
was created for a specific
system. Changes to that system will require change to this configuration
file and the firmware. The initial write address for
config.hex
is
address 0x0040 in external data memory (Program Tag
CONFIG_BASE_ADDRESS). Execution of the utility is described in
Chapter 5, “Configuration Data and the Configuration Utility.”
The
config
data structure can be thought of as having ten different
elements or sections. The developer must understand how these
elements are populated and their function is essential if the
safte.c
source code is modified. The main elements of the
config
data structure
are:
1.
General information - Contains miscellaneous configuration
information.
2.
Enclosure configuration - Lists the total number of fans, power
supplies, etc.
3.
Inquiry Response Information - Contains the data to be returned in
response to an inquiry command.
4.
Timer Setup Information - Specifies the polling interval and the
80C32 Timer 1 and Timer 2 initialization values.
5.
TWS Temperature Sensor Information (on TWS bus) - Contains user
specified sensor type and ID value.
6.
LM78 Configuration - Contains the user specified configuration for
each LM78 (a maximum of one per bus).
7.
TWS Bus Configuration - Contains the user specified bus speed and
ID information.