2016-05-03 05:10:46 +00:00
|
|
|
/* Functions for dumping status/debug output/etc, including fatal
|
|
|
|
* exception handling.
|
|
|
|
*
|
|
|
|
* Part of esp-open-rtos
|
|
|
|
*
|
|
|
|
* Copyright (C) 2015-2016 Superhouse Automation Pty Ltd
|
|
|
|
* BSD Licensed as described in the file LICENSE
|
|
|
|
*/
|
|
|
|
#ifndef _DEBUG_DUMPS_H
|
|
|
|
#define _DEBUG_DUMPS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2016-05-15 00:36:33 +00:00
|
|
|
/* Dump stack memory to stdout, starting from stack pointer address sp. */
|
2016-05-03 05:10:46 +00:00
|
|
|
void dump_stack(uint32_t *sp);
|
|
|
|
|
2016-05-15 00:36:33 +00:00
|
|
|
/* Dump heap statistics to stdout */
|
|
|
|
void dump_heapinfo(void);
|
|
|
|
|
2016-05-03 05:10:46 +00:00
|
|
|
/* Called from exception_vectors.S when a fatal exception occurs.
|
|
|
|
|
|
|
|
Probably not useful to be called in other contexts.
|
|
|
|
*/
|
2016-05-07 09:14:48 +00:00
|
|
|
void __attribute__((noreturn)) fatal_exception_handler(uint32_t *sp, bool registers_saved_on_stack);
|
2016-05-03 05:10:46 +00:00
|
|
|
|
|
|
|
#endif
|