CHAPTER 19 SYSTEM CONFIGURATION FILE


This chapter explains the coding method of the system configuration file required to output information files that contain data to be provided for the RI600V4.

19.1 Outline

The following shows the notation method of system configuration files.

- Comment
Parts from two successive slashes (//) to the line end are regarded as comments.


- Numeric
A numeric value can be written in one of the following formats. Note, do not specify the value exceeding 0xFFFFFFFF.


Hexadecimal: Add "0x" or "0X" at the beginning of a numeric value or add "h" or "H" at the end. In the latter format, be sure to add "0" at the beginning when the value begins with an alphabetic letter from A to F or a to f. Note that the configurator does not distinguish between uppercase and lowercase letters for alphabetic letters (A to F or a to f) used in numeric value representation.

Decimal: Simply write an integer value as is usually done (23, for example). Note that a decimal value must not begin with "0".

Octal: Add "0" at the beginning of a numeric value or add "O" or "o" at the end.

Binary: Add "B" or "b" at the end of a numeric value. Note that a binary value must not begin with "0".

- Operator
The following operator can be used for numeric value.


Table 19-1 Operator

Operator

Precedence

Direction of Computation

( )

High

Left to right

- (unary minus)

Right to left

* / %

Left to right

+ - (binary minus)

Low

Left to right



- Symbol
A symbol is a string of numeric characters, uppercase alphabetic letters, lowercase alphabetic letters, and underscores (_). It must not begin with a numeric character.


- Function name
A function name consists of numeric characters, uppercase alphabetic letters, lowercase alphabetic letters, underscores (_), and dollar signs ($). It must not begin with a numeric character and must end with "()".
To specify module name written by assembly language, name the module starting in '_', and specify the name that excludes '_' for function name.



- Frequency
The frequency is indicated by a character string that consist of numerals and . (period), and ends with "MHz". The numerical values are significant up to six decimal places. Also note that the frequency can be entered using


19.2 Default System Configuration File

For most definition items, if the user omits settings, the settings in the default system configuration file are used. The default system configuration file is stored in the folder indicated by environment variable "LIB600". Be sure not to edit this file.

19.3 Configuration Information (static API)

The configuration information that is described in a system configuration file is shown as follows.

- System Information (system)

- Base Clock Interrupt Information (clock)

- Task Information (task[])

- Semaphore Information (semaphore[])

- Eventflag Information (flag[])

- Data Queue Information (dataqueue[])

- Mailbox Information (mailbox[])

- Mutex Information (mutex[])

- Message Buffer Information (message_buffer[])

- Fixed-sized Memory Pool Information (memorypool[])

- Variable-sized Memory Pool Information (variable_memorypool[])

- Cyclic Handler Information (cyclic_hand[])

- Alarm Handler Information (alarm_handl[])

- Relocatable Vector Information (interrupt_vector[])

- Fixed Vector/Exception Vector Information (interrupt_fvector[])