Contiki-NG
stack-check.c File Reference

Implementation of the stack checker library. More...

#include "contiki.h"
#include "sys/stack-check.h"
#include "dev/watchdog.h"
#include <string.h>
#include <inttypes.h>
#include "sys/log.h"

Go to the source code of this file.

Functions

void stack_check_init (void)
 Initialize the stack area with a known pattern. More...
 
int32_t stack_check_get_usage (void)
 Calculate the maximal stack usage so far. More...
 
int32_t stack_check_get_reserved_size (void)
 Calculate the maximal permitted stack usage. More...
 

Detailed Description

Implementation of the stack checker library.

Author
Atis Elsts atis..nosp@m.elst.nosp@m.s@bri.nosp@m.stol.nosp@m..ac.u.nosp@m.k

Definition in file stack-check.c.