Lines Matching refs:reason
47 uint32_t reason = SRC_GetResetStatusFlags((SRC_Type *)DT_INST_REG_ADDR(0)); in z_impl_hwinfo_get_reset_cause() local
49 if (reason & (MCUX_RESET_PIN_FLAG)) { in z_impl_hwinfo_get_reset_cause()
52 if (reason & (MCUX_RESET_SOFTWARE_FLAG)) { in z_impl_hwinfo_get_reset_cause()
55 if (reason & (MCUX_RESET_POR_FLAG)) { in z_impl_hwinfo_get_reset_cause()
58 if (reason & (MCUX_RESET_WATCHDOG_FLAG)) { in z_impl_hwinfo_get_reset_cause()
61 if (reason & (MCUX_RESET_DEBUG_FLAG)) { in z_impl_hwinfo_get_reset_cause()
64 if (reason & (MCUX_RESET_SECURITY_FLAG)) { in z_impl_hwinfo_get_reset_cause()
67 if (reason & (MCUX_RESET_TEMPERATURE_FLAG)) { in z_impl_hwinfo_get_reset_cause()
70 if (reason & (MCUX_RESET_USER_FLAG)) { in z_impl_hwinfo_get_reset_cause()
81 uint32_t reason = SRC_GetResetStatusFlags((SRC_Type *)DT_INST_REG_ADDR(0)); in z_impl_hwinfo_clear_reset_cause() local
83 SRC_ClearGlobalSystemResetStatus((SRC_Type *)DT_INST_REG_ADDR(0), reason); in z_impl_hwinfo_clear_reset_cause()