xyControl  0.1
Quadrotor Flight Controller on AVR Basis
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Functions | Variables
xmem.c File Reference

XMEM API Implementation. More...

#include <avr/io.h>
#include <stdint.h>
#include <stdlib.h>
#include <xmem.h>
#include <config.h>

Go to the source code of this file.

Functions

void saveState (uint8_t bank)
 Save the current malloc state. More...
 
void restoreState (uint8_t bank)
 Restore the malloc state. More...
 
void xmemInit (void)
 Initialize the External Memory Interface. More...
 
void xmemSetBank (uint8_t bank)
 Switch the active memory bank. More...
 
uint8_t xmemGetBank (void)
 Get the current memory bank. More...
 

Variables

MallocState states [MEMBANKS]
 MallocState for all Memory Banks. More...
 
uint8_t currentBank = 0
 Current active Memory Bank. More...
 
void * __brkval
 Internal Malloc Heap-End Pointer. More...
 
void * __flp
 Internal Malloc Free List Pointer (State) More...
 

Detailed Description

XMEM API Implementation.

Definition in file xmem.c.