241
4. Maximum message priority
[( Definition format )]
Numeric
Value
[( Definition range )]
1 to "maximum value of message priority" that was specified
in "definition of maximum number of items"
[( Default value )]
1
Specify the maximum priority of message in the mailbox.
[( Fixed-size memory pool definition )]
This definition must always be set when the fixed-size memory pool function is to be used.
<< Format >>
// Fixed Memory pool Definition
memorypool[
ID No.
]{
name
=
ID name
;
section
=
Section Name
;
num_block
=
Number of blocks in memory pool
;
siz_block
=
Block size of Memory pool
;
wait_queue
=
Select memory pool waiting queue
;
};
The ID number must be in the range 1 to 255. The ID number can be omitted. If omitted, ID numbers are automatically
assigned in order of numbers beginning with the smallest.
<< Content >>
For each memory pool ID number, define the items described below.
1. ID
name
[( Definition format )]
Symbol
[( Definition range )]
None
[( Default value )]
None
Define the name by which the memory pool is specified in a program.
2. Section
name
[( Definition format )]
Symbol
[( Definition range )]
None
[( Default value )]
MR_HEAP
Define the name of the section in which the memory pool is located. The section defined here must always have
an area allocated for it in the section file (asm_sec.inc or c_sec.inc).
If no section names are defined, the memory pool is located in the MR_HEAP section.
3. Number of block
[( Definition format )]
Numeric
value
[( Definition range )]
1 to 65,535
[( Default value )]
1
Define the total number of blocks that comprise the memory pool.