panic_reason.h 484 B

123456789101112131415161718
  1. /*
  2. * SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. /* Since riscv does not replace mcause with "pseudo_reason" as it xtensa does
  8. * PANIC_RSN_* defined with original interrupt numbers to make it work in
  9. * common code
  10. */
  11. #define PANIC_RSN_INTWDT_CPU0 ETS_INT_WDT_INUM
  12. //TODO: IDF-7511
  13. #if SOC_CPU_CORES_NUM > 1
  14. #define PANIC_RSN_INTWDT_CPU1 ETS_INT_WDT_INUM
  15. #endif
  16. #define PANIC_RSN_CACHEERR 3