2022-01-14 18:05:01 +01:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-10-08 13:18:16 +08:00
|
|
|
#pragma once
|
|
|
|
|
2022-01-14 18:05:01 +01:00
|
|
|
typedef enum {
|
2020-12-28 11:39:25 +08:00
|
|
|
PANIC_RSN_NONE = 0,
|
|
|
|
PANIC_RSN_INTWDT_CPU0,
|
|
|
|
#if SOC_CPU_NUM > 1
|
|
|
|
PANIC_RSN_INTWDT_CPU1,
|
|
|
|
#endif
|
|
|
|
PANIC_RSN_CACHEERR,
|
2021-01-04 19:38:10 +01:00
|
|
|
#if CONFIG_ESP_SYSTEM_MEMPROT_FEATURE
|
|
|
|
PANIC_RSN_MEMPROT,
|
|
|
|
#endif
|
2020-12-28 11:39:25 +08:00
|
|
|
PANIC_RSN_COUNT
|
2022-01-14 18:05:01 +01:00
|
|
|
} panic_reasons_t;
|