exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions | Variables
d_mem.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define D_MEM_HEAP_SIZE   4095
 
#define D_MEM_ALIGN   2
 
#define D_MEM_LEN   0x0fff
 
#define D_MEM_INUSE   0x8000
 

Typedefs

typedef uint16_t bndrt_t
 

Functions

void d_malloc_init ()
 
void * d_malloc (uint16_t sz)
 
void d_free (void *ptr)
 
uint16_t d_malloc_freespace ()
 
void * d_realloc (void *ptr, uint16_t size)
 
uint16_t getMemUsage ()
 

Variables

uint8_t heap [D_MEM_HEAP_SIZE]
 

Macro Definition Documentation

#define D_MEM_ALIGN   2

Definition at line 30 of file d_mem.h.

#define D_MEM_HEAP_SIZE   4095

Definition at line 27 of file d_mem.h.

#define D_MEM_INUSE   0x8000

Definition at line 32 of file d_mem.h.

#define D_MEM_LEN   0x0fff

Definition at line 31 of file d_mem.h.

Typedef Documentation

typedef uint16_t bndrt_t

Definition at line 35 of file d_mem.h.

Function Documentation

void d_free ( void *  ptr)

Definition at line 71 of file d_mem.c.

void* d_malloc ( uint16_t  sz)

Definition at line 44 of file d_mem.c.

uint16_t d_malloc_freespace ( )

Definition at line 93 of file d_mem.c.

void d_malloc_init ( )

Definition at line 32 of file d_mem.c.

void* d_realloc ( void *  ptr,
uint16_t  size 
)

Definition at line 105 of file d_mem.c.

uint16_t getMemUsage ( )

Definition at line 37 of file d_mem.c.

Variable Documentation

Definition at line 28 of file d_mem.c.