diff options
Diffstat (limited to 'nuttx/arch/dm320/src/up_allocateheap.c')
-rw-r--r-- | nuttx/arch/dm320/src/up_allocateheap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/arch/dm320/src/up_allocateheap.c b/nuttx/arch/dm320/src/up_allocateheap.c index 871637ce4..697818e8d 100644 --- a/nuttx/arch/dm320/src/up_allocateheap.c +++ b/nuttx/arch/dm320/src/up_allocateheap.c @@ -41,6 +41,7 @@ #include <sys/types.h> #include <debug.h> #include <nuttx/arch.h> +#include "dm320.h" #include "up_internal.h" /************************************************************ @@ -73,5 +74,5 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { *heap_start = (FAR void*)g_heapbase; - *heap_size = (CONFIG_DRAM_START + CONFIG_DRAM_SIZE) - g_heapbase; + *heap_size = (DM320_SDRAM_VADDR + CONFIG_DRAM_SIZE) - g_heapbase; } |