Renesas M3T-MR100 用户手册

下载
页码 304
   
- 135 - 
 
5.7  Memory Pool Management Function (Fixed-size Memory Pool) 
Specifications of the fixed-size memory pool function of MR100 are listed in Table 5.13
The memory pool area to be acquired can be specified by a section name for each memory pool during configuration. 
 
Table 5.13 Specifications of the Fixed-size memory pool Function 
No. Item 
Content 
Fixed-size memory pool ID 
1-255     
Number of fixed-size memory block 
1-65535     
Size of fixed-size memory block 
4-65535   
TA_TFIFO: Waiting 
tasks 
enqueued in order of FIFO 
4 Supported 
attributes 
TA_TPRI: 
Waiting tasks enqueued in order of priority 
Specification of memory pool area 
Area to be acquired specifiable by a section 
 
Table 5.14 List of Fixed-size memory pool Function Service Call 
System State 
No. Service 
Call 
Function 
T N E D
U
L
1 get_mpf 
[S][B] 
Aquires fixed-size memory block 
 
O
2 pget_mpf 
[S][B] 
O  
O
O
3 ipget_mpf 
 
Aquires fixed-size memory block   
(polling) 
 O  O O
O
4 tget_mpf 
[S] 
Aquires fixed-size memory block   
(with timeout) 
O  
O
5 rel_mpf 
[S][B] 
O  
O
O
6 irel_mpf 
 
Releases fixed-size memory block 
 O  O O
O
7 ref_mpf 
 
 
O
O
8 iref_mpf 
 
References fixed-size memory pool status 
 O  O O
O
 
  Notes: 
• 
[S]: Standard profile service calls 
[B]: Basic profile service calls 
• 
Each sign within " System State " is a following meaning.   
♦  T: Can be called from task context 
♦  N: Can be called from non-task context 
♦  E: Can be called from dispatch-enabled state 
♦  D: Can be called from dispatch-disabled state 
♦  U: Can be called from CPU-unlocked state 
♦  L: Can be called from CPU-locked state