Variable-size memory pool definition ) – Renesas 70 User Manual

Page 122

Advertising
background image

Chapter 6 Using Configurator

- 112 -

4. Size (in bytes)

[( Definition format )] Numeric

value

[( Definition range )]

4 to 65,535

[( Default value )] 256

Define the size of the memory pool per block. The RAM size to be used as a memory pool is deter-
mined by this definition: (number of blocks) x (size) in bytes.

5. Selecting a memory pool waiting queue

[( Definition format )] Symbol

[( Definition range )]

TA_TFIFO or TA_TPRI

[( Default value )] TA_TFIFO

Select a method in which tasks wait for acquisition of the fixed-size memory pool. If TA_TFIFO is se-
lected, tasks are enqueued in order of FIFO. If TA_TPRI is selected, tasks are enqueued in order of
priority beginning with the one that has the highest priority.

[( Variable-size memory pool definition )]
This definition is necessary to use Variable-size memory pool function.

<< Format >>


// Variable-Size Memory pool Definition
variable_memorypool[

ID No.

]{

name

=

ID Name

;

max_memsize

=

The maximum memory block size to be allocated

;

mpl_section

=

Section name

;

heap_size

=

Memory pool size

;

};

The ID number must be in the range 1 to 255. The ID number can be omitted. If omitted, ID numbers are auto-
matically assigned in order of numbers beginning with the smallest.

<< Content >>

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. The maximum memory block size to be allocated

[( Definition format )] Numeric

value

[( Definition range )]

1 to 65520

[( Default value )] None

Specify, within an application program, the maximum memory block size to be allocated.

Advertising