AN2345 Freescale Semiconductor / Motorola, AN2345 Datasheet - Page 23

no-image

AN2345

Manufacturer Part Number
AN2345
Description
Real-Time Memory Manager for StarCore DSPs
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
6
6.1 VSMMMemInit()
Syntax
Description
Parameters
Return Value
Error Checks
Example Usage
6.2 VSMMMemCreate()
Syntax
Description
Parameters
VSSM Functions
This section describes the VSMM functions.
void VSMMMemInit(void)
Initializes the VSMM supporting data structures and global variables.
None
None
None
VSMMMemInit();
t_VSMM_MEM
Creates a fixed-size memory partition (heap).
*pvAddr. A pointer to the starting address of the heap.
uliNBlks. The number of memory blocks to create within this heap.
Dynamic heap creation
Dynamic heap destruction
Memory allocation
Memory free
Memory query
VSMMMemInit.c
VSMMMemCreate.c
VSMMMemAllocCreate.c
VSMMMemDestroy.c
VSMMMemAlloc.c
VSMMMemFree.c
VSMMMemQuery.c
VSMMEnterCritical.asm
VSMMExitCritical.asm
Freescale Semiconductor, Inc.
Table 9. VSMM Task Cycles With Critical Method 2 Enabled (Continued)
For More Information On This Product,
*VSMMMemCreate (void *pvAddr,
Module
Go to: www.freescale.com
Table 10. VSMM Module Statistics
Task
INT32U uliNBlks,
INT32U uliBlkSize,
INT8U *pucErr)
Cycles
147
220
159
30
71
68
68
31
31
Code Size (Bytes)
128
308
416
240
160
128
144
18
14
VSMM Cycles
Data Size (Bytes)
VSSM Functions
250
189
81
78
78
0
0
0
0
0
0
0
0
0
23

Related parts for AN2345