view include/os/heap.h @ 150:e72f984619c7

Consolidated a lot of the defines which relate to the memory layout There is a new file (include/os/memLayout.h) which now includes just about all the #defines
author Jonathan Pevarnek <pevarnj@gmail.com>
date Wed, 02 Nov 2011 09:55:09 -0400
parents eb69d1caa83b
children 9ad854e6d994
line wrap: on
line source

#ifndef __HEAP_H
#define __HEAP_H

#include <memHead.h>
#include <os/storageKeys.h>

#define PageSize 0x1000

void heap_init(size_t memSize);
void* allocHeap(size_t size, size_t *ammt);
void freeHeap(void *ptr);

#endif