Microchip® Advanced Software Framework

mmem.c File Reference

    Implementation of the managed memory allocator
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "mmem.h"
#include "list.h"
#include "contiki-conf.h"
#include <string.h>

Macros

#define MMEM_SIZE   4096
 

Functions

 LIST (mmemlist)
 
int mmem_alloc (struct mmem *m, unsigned int size)
 Allocate a managed memory block. More...
 
void mmem_free (struct mmem *m)
 Deallocate a managed memory block. More...
 
void mmem_init (void)
 Initialize the managed memory module. More...
 

Variables

unsigned int avail_memory
 
static char memory [MMEM_SIZE]