mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feat(esp8266): Add software watch dog panic function
This commit is contained in:
@ -38,9 +38,18 @@ void IRAM_ATTR panicHandler(void *frame)
|
||||
"A14", "A15", "SAR", "EXCCAUSE"
|
||||
};
|
||||
|
||||
extern int _Pri_3_NMICount;
|
||||
|
||||
/* NMI can interrupt exception. */
|
||||
ETS_INTR_LOCK();
|
||||
|
||||
if (_Pri_3_NMICount == -1) {
|
||||
void show_critical_info(void);
|
||||
|
||||
ets_printf("\nWatch dog triggle:\n\n");
|
||||
show_critical_info();
|
||||
}
|
||||
|
||||
for (x = 0; x < 20; x += 4) {
|
||||
for (y = 0; y < 4; y++) {
|
||||
ets_printf("%8s: 0x%08x ", sdesc[x + y], regs[x + y + 1]);
|
||||
|
Reference in New Issue
Block a user