Advanced Configuration
with VisualDSP++ 5.0. Each component of the FSS framework allocates
general memory off the single general heap defined in the FSS. For cache
memory requirements, each component can be assigned a separate cache
heap to use.
Two commands are defined to assign the indexes of general and cache
heaps. To assign the general heap index, use the following command-value
pair in the FSS configuration table passed to the
only:
{ ADI_FSS_CMD_SET_GENERAL_HEAP_ID, (void*)GeneralHeap },
The
GeneralHeap
. For example, in
heap_table
the
GeneralHeap
FSSGeneralHeap_space
struct heap_table_t heap_table[4] =
{
{ &ldf_heap_space, (int) &ldf_heap_length, 0 },
{ &FSSGeneralHeap_space, (int) &FSSGeneralHeap_length, 1 },
{ &FSSCacheHeap_space, (int) &FSSCacheHeap_length, 2 },
{ 0, 0, 0 }
};
This index can also be obtained from a call to
the
required:
userid
GeneralHeap = heap_lookup(1);
1
Please note that this is also the userid value in the table entry, which is a coincidental consequence of
the above entries being auto-generated by the project options wizard. For user heaps defined with
heap_install, this may not be the case.
12-16
value is the array index of the heap entry in the
"Shell_Browser" on page
value is assigned to 1 which is the index of the
entry in the following table
VisualDSP++ 5.0 Device Drivers and System
Services Manual for Blackfin Processors
adi_fss_Init()
12-86,
1
:
for
heap_lookup()
function
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?
Questions and answers