aversive_10-03-12/modules/debug/diagnostic/stack_space.c File Reference

#include <avr/io.h>
#include <aversive.h>
#include <diagnostic.h>

Go to the source code of this file.

Functions

void fill_mem_with_mark (void)
uint16_t min_stack_space_available (void)


Function Documentation

void fill_mem_with_mark ( void   ) 

This diagnostical software fills the RAM with a mark, and counts how many of these marks are unmodified, in order to avaluate the min stack space available after code execution. You can then know how much your stack your program needed in a peak, without looking espacially when this peak arises. you see the minmal stack space left since the reset of the microcontroller. this functions fills the ram with a predefined pattern after a reset and BEFORE any other operation

Definition at line 37 of file stack_space.c.

References i.

uint16_t min_stack_space_available ( void   ) 

This functuion allows to monitor the maximal stack space that was used since the last reset (peak value) you can then monitor the available space in your ram returns the minimal value of the free space left

Definition at line 69 of file stack_space.c.

References i.


Generated on Fri Mar 12 06:32:05 2010 for AVR by  doxygen 1.5.6