/Zephyr-latest/tests/boards/nrf/hwinfo/reset_cause/src/ |
D | main.c | 148 static void print_current_reset_cause(uint32_t *cause) in print_current_reset_cause() argument 152 ret = hwinfo_get_reset_cause(cause); in print_current_reset_cause() 155 if (*cause & RESET_PIN) { in print_current_reset_cause() 158 if (*cause & RESET_SOFTWARE) { in print_current_reset_cause() 161 if (*cause & RESET_BROWNOUT) { in print_current_reset_cause() 164 if (*cause & RESET_POR) { in print_current_reset_cause() 167 if (*cause & RESET_WATCHDOG) { in print_current_reset_cause() 170 if (*cause & RESET_DEBUG) { in print_current_reset_cause() 173 if (*cause & RESET_SECURITY) { in print_current_reset_cause() 176 if (*cause & RESET_LOW_POWER_WAKE) { in print_current_reset_cause() [all …]
|
/Zephyr-latest/drivers/hwinfo/ |
D | hwinfo_rw61x.c | 44 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 47 *cause = 0; in z_impl_hwinfo_get_reset_cause() 55 *cause = RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause() 58 *cause = RESET_CPU_LOCKUP; in z_impl_hwinfo_get_reset_cause() 61 *cause = RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause() 64 *cause = RESET_DEBUG; in z_impl_hwinfo_get_reset_cause() 68 *cause = RESET_SECURITY; in z_impl_hwinfo_get_reset_cause() 71 *cause = RESET_HARDWARE; in z_impl_hwinfo_get_reset_cause() 74 *cause = 0; in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_esp32.c | 64 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 70 *cause = RESET_POR; in z_impl_hwinfo_get_reset_cause() 73 *cause = RESET_PIN; in z_impl_hwinfo_get_reset_cause() 76 *cause = RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause() 81 *cause = RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause() 84 *cause = RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause() 87 *cause = RESET_CPU_LOCKUP; in z_impl_hwinfo_get_reset_cause() 89 *cause = RESET_BROWNOUT; in z_impl_hwinfo_get_reset_cause() 92 *cause = 0; in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_shell.c | 68 static inline const char *cause_to_string(uint32_t cause) in cause_to_string() argument 70 switch (cause) { in cause_to_string() 121 static void print_all_reset_causes(const struct shell *sh, uint32_t cause) in print_all_reset_causes() argument 124 if (cause & cause_mask) { in print_all_reset_causes() 126 cause_to_string(cause & cause_mask)); in print_all_reset_causes() 135 uint32_t cause; in cmd_show_reset_cause() local 140 res = hwinfo_get_reset_cause(&cause); in cmd_show_reset_cause() 149 if (cause != 0) { in cmd_show_reset_cause() 151 print_all_reset_causes(sh, cause); in cmd_show_reset_cause() 181 uint32_t cause; in cmd_supported_reset_cause() local [all …]
|
D | hwinfo_sam_rstc.c | 17 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 24 *cause = RESET_POR; in z_impl_hwinfo_get_reset_cause() 27 *cause = RESET_LOW_POWER_WAKE; in z_impl_hwinfo_get_reset_cause() 30 *cause = RESET_WATCHDOG; in z_impl_hwinfo_get_reset_cause() 33 *cause = RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause() 36 *cause = RESET_USER; in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_cc13xx_cc26xx.c | 55 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 63 *cause = RESET_POR; in z_impl_hwinfo_get_reset_cause() 66 *cause = RESET_PIN; in z_impl_hwinfo_get_reset_cause() 71 *cause = RESET_BROWNOUT; in z_impl_hwinfo_get_reset_cause() 74 *cause = RESET_CLOCK; in z_impl_hwinfo_get_reset_cause() 77 *cause = RESET_SOFTWARE; in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_silabs_series2.c | 63 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 69 *cause = 0; in z_impl_hwinfo_get_reset_cause() 108 *cause = flags; in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_smartbond.c | 11 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 40 *cause = flags; in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_mcux_rcm.c | 89 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 99 *cause = hwinfo_mcux_rcm_xlate_reset_sources(sources); in z_impl_hwinfo_get_reset_cause() 101 LOG_DBG("sources = 0x%08x, cause = 0x%08x", sources, *cause); in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_handlers.c | 26 int z_vrfy_hwinfo_get_reset_cause(uint32_t *cause) in z_vrfy_hwinfo_get_reset_cause() argument 32 K_OOPS(k_usermode_to_copy(cause, &cause_copy, sizeof(uint32_t))); in z_vrfy_hwinfo_get_reset_cause()
|
D | hwinfo_rpi_pico.c | 52 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 85 *cause = flags; in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_mcux_src_rev2.c | 44 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 74 *cause = flags; in z_impl_hwinfo_get_reset_cause()
|
D | hwinfo_andes.c | 59 int z_impl_hwinfo_get_reset_cause(uint32_t *cause) in z_impl_hwinfo_get_reset_cause() argument 89 *cause = flags; in z_impl_hwinfo_get_reset_cause()
|
/Zephyr-latest/arch/mips/core/ |
D | fatal.c | 33 LOG_ERR("Cause : %08lx\n", esf->cause); in z_mips_fatal_error() 41 static char *cause_str(unsigned long cause) in cause_str() argument 43 switch (cause) { in cause_str() 89 unsigned long cause; in z_mips_fault() local 91 cause = (read_c0_cause() & CAUSE_EXP_MASK) >> CAUSE_EXP_SHIFT; in z_mips_fault() 94 LOG_ERR(" cause: %ld, %s", cause, cause_str(cause)); in z_mips_fault()
|
D | irq_manage.c | 20 unsigned long cause; in z_irq_spurious() local 23 cause = (read_c0_cause() & CAUSE_EXP_MASK) >> CAUSE_EXP_SHIFT; in z_irq_spurious() 25 LOG_ERR("Spurious interrupt detected! CAUSE: %ld", cause); in z_irq_spurious()
|
/Zephyr-latest/arch/arc/core/ |
D | fault.c | 137 static void dump_protv_exception(uint32_t cause, uint32_t parameter) in dump_protv_exception() argument 139 switch (cause) { in dump_protv_exception() 171 static void dump_machine_check_exception(uint32_t cause, uint32_t parameter) in dump_machine_check_exception() argument 173 switch (cause) { in dump_machine_check_exception() 219 static void dump_privilege_exception(uint32_t cause, uint32_t parameter) in dump_privilege_exception() argument 221 switch (cause) { in dump_privilege_exception() 275 static void dump_exception_info(uint32_t vector, uint32_t cause, uint32_t parameter) in dump_exception_info() argument 297 dump_machine_check_exception(cause, parameter); in dump_exception_info() 307 dump_protv_exception(cause, parameter); in dump_exception_info() 311 dump_privilege_exception(cause, parameter); in dump_exception_info() [all …]
|
/Zephyr-latest/arch/nios2/core/ |
D | fatal.c | 111 enum nios2_exception_cause cause; in z_nios2_fault() local 119 cause = (exc_reg & NIOS2_EXCEPTION_REG_CAUSE_MASK) in z_nios2_fault() 122 LOG_ERR("Exception cause: %d ECCFTL: 0x%x", cause, eccftl); in z_nios2_fault() 124 LOG_ERR("reason: %s", cause_str(cause)); in z_nios2_fault() 126 if (BIT(cause) & NIOS2_BADADDR_CAUSE_MASK) { in z_nios2_fault()
|
/Zephyr-latest/arch/xtensa/core/ |
D | vector_handlers.c | 220 static void print_fatal_exception(void *print_stack, int cause, in print_fatal_exception() argument 236 arch_curr_cpu()->id, cause, in print_fatal_exception() 237 xtensa_exccause(cause)); in print_fatal_exception() 346 int cause, reason; in xtensa_excint1_c() local 357 cause = XTENSA_RSR(ZSR_EXCCAUSE_SAVE_STR); in xtensa_excint1_c() 361 __asm__ volatile("rsr.exccause %0" : "=r"(cause)); in xtensa_excint1_c() 364 switch (cause) { in xtensa_excint1_c() 418 if (cause == EXCCAUSE_ILLEGAL) { in xtensa_excint1_c() 420 cause = 63; in xtensa_excint1_c() 421 __asm__ volatile("wsr.exccause %0" : : "r"(cause)); in xtensa_excint1_c() [all …]
|
D | xtensa_backtrace.c | 21 static int mask, cause; variable 29 if (cause != EXCCAUSE_INSTR_PROHIBITED) { in xtensa_cpu_process_stack_pc() 128 cause = bsa->exccause; in xtensa_backtrace_print() 136 if (cause != EXCCAUSE_INSTR_PROHIBITED) { in xtensa_backtrace_print() 149 cause == EXCCAUSE_INSTR_PROHIBITED)); in xtensa_backtrace_print()
|
/Zephyr-latest/samples/boards/st/power_mgmt/standby_shutdown/src/ |
D | main.c | 95 uint32_t cause; in main() local 97 hwinfo_get_reset_cause(&cause); in main() 100 if (cause == RESET_LOW_POWER_WAKE) { in main() 105 if (cause == (RESET_PIN | RESET_BROWNOUT)) { in main() 109 if (cause == RESET_PIN) { in main()
|
/Zephyr-latest/tests/drivers/hwinfo/api/src/ |
D | main.c | 88 uint32_t cause; in ZTEST() local 92 cause = 0xDEADBEEF; in ZTEST() 94 ret = hwinfo_get_reset_cause(&cause); in ZTEST() 104 zassert_not_equal(cause, 0xDEADBEEF, "Reset cause not written."); in ZTEST()
|
/Zephyr-latest/samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/src/ |
D | main.c | 19 void flexram_magic_addr_isr_cb(enum memc_flexram_interrupt_cause cause, in flexram_magic_addr_isr_cb() argument 24 if (cause == flexram_dtcm_magic_addr) { in flexram_magic_addr_isr_cb()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | hwinfo.h | 134 __syscall int hwinfo_get_reset_cause(uint32_t *cause); 136 int z_impl_hwinfo_get_reset_cause(uint32_t *cause);
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | hwinfo.rst | 10 identifiers and reset cause flags. 12 Reset cause flags can be used to determine why the device was reset; for
|
/Zephyr-latest/modules/trusted-firmware-m/ |
D | Kconfig.tfm.partitions | 15 Setting this option will cause '-DTFM_PARTITION_PROTECTED_STORAGE' 26 Setting this option will cause '-DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE' 37 Setting this option will cause '-DTFM_PARTITION_CRYPTO' 49 Setting this option will cause '-DTFM_PARTITION_INITIAL_ATTESTATION' 60 Setting this option will cause '-DTFM_PARTITION_PLATFORM' 72 Setting this option will cause '-DTFM_PARTITION_FIRMWARE_UPDATE'
|