4576e41ec3
* Refactored ports/xplained to use common DLMSTP module to enable extended frames * Added floating point compares in cases where they don't exist in math library
35 lines
579 B
C
35 lines
579 B
C
/**
|
|
* @file
|
|
* @brief API for AVR C-Stack Tracking for stack overflow detection
|
|
* @author Steve Karg <skarg@users.sourceforge.net>
|
|
* @date 2013
|
|
* @copyright SPDX-License-Identifier: MIT
|
|
*/
|
|
#ifndef STACK_H
|
|
#define STACK_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* C stack checking */
|
|
void stack_init(
|
|
void);
|
|
|
|
unsigned stack_size(
|
|
void);
|
|
|
|
uint8_t stack_byte(
|
|
unsigned offset);
|
|
|
|
unsigned stack_unused(
|
|
void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
#endif
|