2016-08-24 09:21:27 +00:00
|
|
|
#ifndef PANIC_H
|
|
|
|
#define PANIC_H
|
|
|
|
|
2016-10-25 09:05:13 +00:00
|
|
|
|
|
|
|
#define PANIC_RSN_NONE 0
|
|
|
|
#define PANIC_RSN_DEBUGEXCEPTION 1
|
|
|
|
#define PANIC_RSN_DOUBLEEXCEPTION 2
|
|
|
|
#define PANIC_RSN_KERNELEXCEPTION 3
|
|
|
|
#define PANIC_RSN_COPROCEXCEPTION 4
|
2016-10-25 10:08:55 +00:00
|
|
|
#define PANIC_RSN_INTWDT_CPU0 5
|
|
|
|
#define PANIC_RSN_INTWDT_CPU1 6
|
|
|
|
#define PANIC_RSN_MAX 6
|
2016-10-25 09:05:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
|
2017-01-09 08:42:45 +00:00
|
|
|
#include "esp_err.h"
|
|
|
|
|
2016-10-26 04:23:01 +00:00
|
|
|
void esp_set_breakpoint_if_jtag(void *fn);
|
2016-08-24 09:21:27 +00:00
|
|
|
|
2017-01-09 08:42:45 +00:00
|
|
|
#define ESP_WATCHPOINT_LOAD 0x40000000
|
|
|
|
#define ESP_WATCHPOINT_STORE 0x80000000
|
|
|
|
#define ESP_WATCHPOINT_ACCESS 0xC0000000
|
|
|
|
|
|
|
|
esp_err_t esp_set_watchpoint(int no, void *adr, int size, int flags);
|
|
|
|
void esp_clear_watchpoint(int no);
|
|
|
|
|
|
|
|
|
2016-10-25 09:05:13 +00:00
|
|
|
#endif
|
2016-08-24 09:21:27 +00:00
|
|
|
|
|
|
|
#endif
|