12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
-
- #ifndef _RAMDUMP__H_
- #define _RAMDUMP__H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <toolchain.h>
- #include <arch/cpu.h>
- #ifdef CONFIG_DEBUG_RAMDUMP
- extern int ramdump_save(const z_arch_esf_t *esf, int btcpu_info);
- extern int ramdump_dump(void);
- extern int ramdump_transfer(int (*traverse_cb)(uint8_t *data, uint32_t max_len));
- #else
- #define ramdump_save(x,y) do{}while(0)
- #define ramdump_dump() do{}while(0)
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|