2022-01-14 18:05:01 +01:00
|
|
|
/*
|
2023-07-19 16:28:03 +08:00
|
|
|
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
|
2022-01-14 18:05:01 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-10-08 13:18:16 +08:00
|
|
|
#pragma once
|
|
|
|
|
2023-05-04 17:31:31 +02:00
|
|
|
/* Since riscv does not replace mcause with "pseudo_reason" as it xtensa does
|
|
|
|
* PANIC_RSN_* defined with original interrupt numbers to make it work in
|
|
|
|
* common code
|
|
|
|
*/
|
|
|
|
#define PANIC_RSN_INTWDT_CPU0 ETS_INT_WDT_INUM
|
2023-07-19 16:28:03 +08:00
|
|
|
|
|
|
|
//TODO: IDF-7511
|
|
|
|
#if SOC_CPU_CORES_NUM > 1
|
|
|
|
#define PANIC_RSN_INTWDT_CPU1 ETS_INT_WDT_INUM
|
|
|
|
#endif
|
|
|
|
#define PANIC_RSN_CACHEERR 3
|