分支自 DSP/ADSP21569/DSP-21569

graydon
2023-09-20 d40b58b3ecbfb79e015f55755127849335e289b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
** ADSP-21569 user heap source file generated on Aug 02, 2023 at 21:46:12.
*/
/*
** Copyright (C) 2000-2022 Analog Devices Inc., All Rights Reserved.
**
** This file is generated automatically based upon the options selected
** in the System Configuration utility. Changes to the Heap configuration
** should be made by modifying the appropriate options rather than editing
** this file. To access the System Configuration utility, double-click the
** system.svc file from a navigation view.
**
** Custom additions can be inserted within the user-modifiable sections. These
** sections are bounded by comments that start with "$VDSG". Only changes
** placed within these sections are preserved when this file is re-generated.
**
** Product      : CrossCore Embedded Studio
** Tool Version : 6.2.3.3
*/
 
#ifdef _MISRA_RULES
#pragma diag(push)
#pragma diag(suppress:misra_rule_1_1)
#pragma diag(suppress:misra_rule_6_3)
#pragma diag(suppress:misra_rule_8_10)
#pragma diag(suppress:misra_rule_10_1_a)
#pragma diag(suppress:misra_rule_11_3)
#endif /* _MISRA_RULES */
 
#pragma file_attr("libData=HeapTable")
 
#include <stdlib.h>
#include <limits.h>
 
extern "asm" unsigned long ldf_heap_space;
extern "asm" unsigned long ldf_heap_length;
extern "asm" int L1Mem_space;
extern "asm" int L1Mem_length;
extern "asm" int DDRHeap_space;
extern "asm" int DDRHeap_length;
 
const __heap_desc_t heap_table[4] =
{
 
  { &ldf_heap_space, (unsigned long) &ldf_heap_length, 0 },
  { &L1Mem_space, (unsigned long) &L1Mem_length, 1 },
  { &DDRHeap_space, (unsigned long) &DDRHeap_length, 2 },
 
  { (void *)0, (size_t)0, 0 } /* This terminates the table. */
};
 
#if CHAR_BIT != 8
#  error This source must be compiled with -char-size-8
#endif
 
#ifdef _MISRA_RULES
#pragma diag(pop)
#endif /* _MISRA_RULES */