HP EZ-KIT Bedienungsanleitung Seite 79

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 112
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 78
Getting Started with ADSP-BF548 EZ-KIT Lite 5-7
Using ADSP-BF548 EZ-KIT Lite Hard Disk and LCD Screen
Now double-click the Example_6_heaptab.c filename to open a source
window containing the file’s contents and scroll to the bottom of the file
(Listing 5-1). There are external declarations for two symbol pairs: one
pair for the default system heap, the other pair for our user-defined heap.
The symbols are defined by the linker when the example is built, acting on
commands placed in the linker description file by VisualDSP++. The rest
of the file consists of the initialization of a heap descriptors table, as
detailed under “Defining Heaps at Link Time” in the VisualDSP++ C/C++
Compiler for Blackfin Processors Manual in the online help.
Note that the generated
Example_6_heaptab.c requires no editing.
Listing 5-1. Example_6_heaptab.c File
/* Address and length of system user heaps */
extern “asm” int ldf_heap_space;
extern “asm” int ldf_heap_length;
extern “asm” int FSSGeneralHeap_space;
extern “asm” int FSSGeneralHeap_length;
struct heap_table_t
{
void *base;
unsigned long length;
long int userid;
};
/* Program’s heap descriptor table */
#pragma file_attr(“libData=HeapTable”)
#pragma section(“constdata”)
struct heap_table_t heap_table[3] =
{
{ &ldf_heap_space, (int) &ldf_heap_length, 0 },
{ &FSSGeneralHeap_space, (int) &FSSGeneralHeap_length, 1 },
{0,0,0}
};
Seitenansicht 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 111 112

Kommentare zu diesen Handbüchern

Keine Kommentare