/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_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() 145 shell_error(sh, "Error reading the cause [%d]", res); 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() [all …]
|
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_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 | Kconfig | 83 bool "NXP kinetis reset cause" 99 bool "NXP SRC reset cause" 107 bool "NXP SRC reset cause (multicore devices)" 140 bool "Atmel SAM reset cause" 145 Enable Atmel SAM reset cause hwinfo driver. 172 bool "Smartbond device reset cause" 177 Enable Smartbond reset cause hwinfo driver.
|
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_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_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()
|
/Zephyr-latest/tests/drivers/hwinfo/api/src/ |
D | main.c | 75 * @brief TestPurpose: verify get reset cause works. 79 * -# Read the reset cause 88 uint32_t cause; in ZTEST() local 91 /* Set `cause` to a known value prior to call. */ in ZTEST() 92 cause = 0xDEADBEEF; in ZTEST() 94 ret = hwinfo_get_reset_cause(&cause); in ZTEST() 103 /* Verify that `cause` has been changed. */ in ZTEST() 104 zassert_not_equal(cause, 0xDEADBEEF, "Reset cause not written."); in ZTEST() 111 * @brief TestPurpose: verify clear reset cause works. This may 112 * not work on some platforms, depending on how reset cause register [all …]
|
/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 _Fault() local 91 cause = (read_c0_cause() & CAUSE_EXP_MASK) >> CAUSE_EXP_SHIFT; in _Fault() 94 LOG_ERR(" cause: %ld, %s", cause, cause_str(cause)); in _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/include/zephyr/drivers/ |
D | hwinfo.h | 36 * @name Reset cause flags 115 * @brief Retrieve cause of device reset. 117 * @param cause OR'd @ref reset_cause "reset cause" flags 121 * On some platforms the reset cause flags accumulate between successive resets 123 * since the device was powered on. If you need to retrieve the cause only for 134 __syscall int hwinfo_get_reset_cause(uint32_t *cause); 136 int z_impl_hwinfo_get_reset_cause(uint32_t *cause); 139 * @brief Clear cause of device reset. 141 * Clears reset cause flags. 152 * @brief Get supported reset cause flags [all …]
|
/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'
|
/Zephyr-latest/arch/arc/core/ |
D | fault.c | 43 * protection violation, with any cause code, with the protection access 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() [all …]
|
/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() 102 printk("\nReset cause: Standby mode\n\n"); in main() 105 if (cause == (RESET_PIN | RESET_BROWNOUT)) { in main() 106 printk("\nReset cause: Shutdown mode or power up\n\n"); in main() 109 if (cause == RESET_PIN) { in main() 110 printk("\nReset cause: Reset pin\n\n"); in main()
|
/Zephyr-latest/arch/nios2/core/ |
D | fatal.c | 111 enum nios2_exception_cause cause; in _Fault() local 118 /* Bits 2-6 contain the cause code */ in _Fault() 119 cause = (exc_reg & NIOS2_EXCEPTION_REG_CAUSE_MASK) in _Fault() 122 LOG_ERR("Exception cause: %d ECCFTL: 0x%x", cause, eccftl); in _Fault() 124 LOG_ERR("reason: %s", cause_str(cause)); in _Fault() 126 if (BIT(cause) & NIOS2_BADADDR_CAUSE_MASK) { in _Fault()
|
/Zephyr-latest/arch/xtensa/core/ |
D | xtensa_backtrace.c | 21 static int mask, cause; variable 29 if (cause != EXCCAUSE_INSTR_PROHIBITED) { in xtensa_cpu_process_stack_pc() 121 * cause another access violation. in xtensa_backtrace_print() 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()
|
D | vector_handlers.c | 147 * Or worse, cause another access violation. in xtensa_dump_stack() 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() 241 * Or worse, cause another access violation. 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() [all …]
|
/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/tests/kernel/mem_protect/stackprot/src/ |
D | mapped_stack.c | 22 * @brief To cause fault in guard pages. 41 /* Figure out where to cause the stack fault. */ in mapped_thread() 51 TC_PRINT("Trying to cause stack fault at %p\n", ptr); in mapped_thread() 77 * where to cause a stack fault. in create_thread()
|
/Zephyr-latest/include/zephyr/drivers/i3c/ |
D | target_device.h | 126 * A success return shall cause the controller to ACK the next byte 127 * received. An error return shall cause the controller to NACK the 144 * A success return shall cause the controller to ACK the next byte 145 * received. An error return shall cause the controller to NACK the 167 * return shall cause the controller to react to additional read 168 * operations. An error return shall cause the controller to ignore 190 * return shall cause the controller to react to additional read 191 * operations. An error return shall cause the controller to ignore 228 * return shall cause the controller to react to additional read operations. 229 * An error return shall cause the controller to ignore bus operations until
|
/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/tests/bsim/bluetooth/host/security/ccc_update/ |
D | prj_2.conf | 1 # Disable CCC lazy loading, this cause the CCC config to not be cleared at
|
/Zephyr-latest/arch/nios2/ |
D | Kconfig | 59 the cause code for an exception will be supplemented by a string 60 describing what that cause code means.
|