#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) |
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.